Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi kiepot,

    You should use the /reviews/ archive template for proper pagination using the regular WordPress theme archive system. It will use your template’s archive.php template. You can create your own archive template at archive-grfwp-review.php.

    Any chance you could elaborate on this? as I’m still struggling to find way to get page of reviews to paginate. Thanks

    Hi redactuk,

    WordPress uses a template hierarchy system to determine what PHP template files to load for any given page. For instance, all posts in a particular category will often use thhe archive.php template file. To modify your archive page, you’ll need to be comfortable working with PHP files and you’ll need to read up on WordPress’s theme system.

    You should be able to see the current state of how your theme handles archives by going to https://yoursite.com/reviews/.

    Thanks for reply NateWr. I’m using Hybrid framework that slightly alters template hierarchy so I’m just trying to find right way to handle archive diplay for custom post type, but that’s out of scope of you support. I’ll figure it out.

    Ok, solved problem. I had a page in the Bin with the slug /reviews/. As soon as I deleted that my archive template worked.

    One quick question: Any reason why slug for single reviews is the singular ‘review’ rather than ‘reviews’?

    Hi redactuk,

    This is the slug I’ve defined when registering the custom post type. The plugin passes these arguments through a filter, so you can hook in and modify this from your own code — either the theme or, preferably, a little plugin that you write.

    If you don’t want to use that hook, there’s a bit more detail in how to change a rewrite slug in this stack exchange post.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Pagination’ is closed to new replies.