- This topic has 3 replies, 2 voices, and was last updated 6 years, 4 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Two Custom Post Types – Issue
Tagged: V3
Hello!
I have 2 custom post types: Movies, Series, but posts from series are not being displayed. Only posts with Movies post type are being displayed.
$args = array(
'post_type' => array('movies', 'series'),
'posts_per_page' => $number,
'post_status' => 'publish',
'no_found_rows' => true,
'ignore_sticky_posts' => true,
'search_filter_id' => '840'
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
while ( $the_query->have_posts() ) : $the_query->the_post();
//Getting template here
endwhile;