Next post takes me to unexpected page
-
I order the pages by using the page order attributes. All seem to be OK except to page 2 and 3. Clicking the NEXT post icon take to page 123 (per se) and PREV icon on page 3 to page 457.
When I use the page list block, the pages are listed correctly.
How can I correct it?
WP.com: Yes
Correct account: YesThe blog I need help with is: (visible only to logged in users)
-
By the way the pages I have problem with are:
1. https://sunseekerssite.wordpress.com/cycling-trio-taiwan-series/2018-chishang-taipei/
clicking Next takes me a page_id 308
Clicking Prev takes to a page in 2017 rather than going back to day 2 in 2018 ( item 1)
-
Hi there,
The “Previous post”/”Next post” blocks you’re using there are meant to be used on blog posts, not on static pages like you’re doing. If you do use them on pages, they’ll link to the next/previous page based on the numeric page ID value assigned to the page in the database. Those blocks take no note at all of the page order which you set manually.
If you want to use static pages for your content rather than blog posts, the only way to have previous/next links that work properly is to add them manually on each page, linking each one to the exact page you want it to go in each case.
That said, I recommend you reconsider how you’ve set up your site, and using blog posts instead. You can still use pages for the index, for example, https://sunseekerssite.wordpress.com/cycling-trio-taiwan-series/2018-chishang-taipei/. But then have the individual entries as blog posts – with blog posts you can control their order via the publication date/timestamp, and the previous/next links will work based on that.
Using blog posts also has the benefit that people can then subscribe to your site and get notified when you publish something new. That doesn’t happen when you publish/update static pages. And search engines rank content in blog posts higher than they do content in static pages.
-
-
-
You can find the ID of any post or page by opening the post or page in the Editor.
The URL in your browser should show something like this at the end of it:
post.php?post=204&action=editIn the above example,
204is the post/page ID.I hope that clarifies things!
- The topic ‘Next post takes me to unexpected page’ is closed to new replies.