• I’m attempting to build a front page that contains a single post – in the form of a video player – that has arrows to paginate between all of the posts in the same ‘Videos’ category.

    My current version was returning 404s when paginating when it was used as index.php but will partially work when set as a static page template in wp admin. Currently the next arrow will bring up page 2 but will stop there and the previous arrow never makes an appearance.

    I’ve been pulling my hair out over this for about a day and a half so any help you can give will be much appreciated.

    The index.php (which is currently being used as a template) is here.

    And the videoplayer.php which is referenced as a template_part within the template is here (it’s missing a comma on the query array and both of the next_post_links should be formatted next_posts_link(‘▶’,$custom_loop->max_num_pages) )

    You can see it testing live here.

    Cheers for looking!

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