Nextpage tag not working correctly with understrap-child theme on posts
-
Trying to use the default <!–nextpage–> function within the content of a post in order to split up long posts
I’m using the latest version of the understrap theme along with the understrap-child theme via @holger1411 on github.
Within my single.php file I have the next page function right after the_content as shown below:
<?php the_content(); ?> <!-- Post Page Pagination --> <?php wp_link_pages( array( 'before' => '<div class="pager clearfix"><strong class="title">Read More:</strong><ul>', 'link_before' => '<li>', 'link_after' => '</li>', 'after' => '</ul></div>', ) ); ?>
The output is correct as you can see at the bottom of the post on our beta site: https://beta.freeskier.com/stories/more-for-the-avid-traveler-12-north-american-ski-resorts-to-add-to-your-list-this-winter
The issue is that when you click on “2” or “3” it goes to the correct page then forwards to a post where that number you clicked is within the URL.
So https://beta.freeskier.com/stories/more-for-the-avid-traveler-12-north-american-ski-resorts-to-add-to-your-list-this-winter/2 goes to https://beta.freeskier.com/stories/2-days
and… https://beta.freeskier.com/stories/more-for-the-avid-traveler-12-north-american-ski-resorts-to-add-to-your-list-this-winter/3 goes to https://beta.freeskier.com/stories/3-days-left
… and so on.
I flipped the theme back to the default 2017 theme and this issue simply doesn’t exist. The pagination works as it should with /2 or /3 or /4 holding at the end of the url and showing the correct content.
I’ve deactivated all plugins to see if that was an issue but it was another dead end.
Curious why this might be happening with undertrap and the use of the understrap-child theme.
Anyone seen this issue before with this theme or in general and know how to fix the post forwarding to the wrong url?
The page I need help with: [log in to see the link]
- The topic ‘Nextpage tag not working correctly with understrap-child theme on posts’ is closed to new replies.