• I am currently making a website with a custom post type and I have gone through a roller coaster journey trying to get pagination working. Right now all of my custom post type pages work however the current page and number of pages aren’t showing correctly.

    If you view the website, you’ll notice that the code I am using doesn’t display either the current page or the number of pages. It just says “Page of” instead of “Page 1 of 2”. This is the code I am using:

    <?php echo 'Page '.$page.' of '.$numpages.''; ?>

    Any idea why it’s not working? Thanks!

  • The topic ‘Display Current Page For Custom Post Type’ is closed to new replies.