Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other How to get pagination to work with custom post types? Re: How to get pagination to work with custom post types?

#103078
elmalak
Member

@Luminated;
Thank you for your help, however I am not sure how to integrate this with my code.
Here is my code,


$loop = new WP_Query( array( 'post_type' => 'doctors', 'posts_per_page' => 10 ) ); ?>

have_posts() ) : $loop->the_post(); ?>

Many thanks,