• Resolved Sibbo100

    (@sibbo100)


    Hi,

    Does this work on custom post type loop, I have the correct selectors for the looped items and also the button and can see the button is being placed on the page but is then being hidden as it doesn’t seem to recognise that there are additional posts waiting to be shown, below is my loop arguments, also worth mentioning that I am pulling in the custom post via a custom post category which the editor chooses via an ACF field:

    $args = array(
    	'post_type'     	=> 'success_story', //or your postype 
    	'post_status'   	=> 'publish',
    	'orderby'		=> 'date',
    	'order'			=> 'DESC',
    	'paged'			=> $paged,
    	'posts_per_page' 	=> 3,
    	'tax_query' => array(
    	array(
    		'taxonomy' => 'story_category',
    		'field'    => 'term_id',
    		'terms'    => $story_cat_id
    	)
    	)
    );
    $query = new WP_Query( $args );

    Unfortunately I’m building this locally at the minute so no URL to share.

    Thank you
    Scott

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post TYpes’ is closed to new replies.