Forums Forums Search & Filter Pro Two Custom Post Types – Issue

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Anonymous
    #237135

    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;
    Trevor
    #237157
    This reply has been marked as private.
    Anonymous
    #237272
    This reply has been marked as private.
    Trevor
    #237304
    This reply has been marked as private.
Viewing 4 posts - 1 through 4 (of 4 total)