From aff6cbcf81214ea9dc37da6747ed7c2eaf0c2f4d Mon Sep 17 00:00:00 2001 From: Erick Hitter <services@ethitter.com> Date: Tue, 28 Feb 2017 11:00:13 -0800 Subject: [PATCH] Capture post type as well --- includes/class-main.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/class-main.php b/includes/class-main.php index 7a858c7..1089995 100644 --- a/includes/class-main.php +++ b/includes/class-main.php @@ -60,6 +60,10 @@ class Main { $vars->action = (int) $_REQUEST['action2']; } + if ( isset( $_REQUEST['post_type'] ) && ! empty( $_REQUEST['post_type'] ) ) { + $vars->posts_type = $_REQUEST['post_type']; + } + if ( isset( $_REQUEST['post'] ) && is_array( $_REQUEST['post'] ) ) { $vars->posts = array_map( 'absint', $_REQUEST['post'] ); } -- GitLab