Changing Links for Next Post and Previous Post
-
I should like to change the links under ‘Next Post’ and ‘Previous Post’, to adjust the continuity of my page. Is there a way to alter the HTML to reflect the new pointers?
WP.com: Yes
Correct account: YesThe blog I need help with is: (visible only to logged in users)
-
Hi there!
Could you elaborate a bit on that? What exactly would you like to change about those links?
-
I am attempting to make the “Next Post” link point to a different page entry than it is now.
Instead of going chronologically by entry date, I am trying to link the “next post” link to an entry twenty or so later.
If you observe the start page in Colum 1, Post 1 currently links to Post 11 – I am trying to get it to link to Post 2, then to Post 3, etc. I can right-click-Inspect on the link, and paste in the HTML links I desire, but I can’t save the changes.
Is there a way to save your changes in HTML?
-
Hi there,
If you observe the start page in Colum 1, Post 1 currently links to Post 11 – I am trying to get it to link to Post 2, then to Post 3, etc. I can right-click-Inspect on the link, and paste in the HTML links I desire, but I can’t save the changes.
One thing to be aware if is that the prev/next button at the bottom of blog posts are set up to skip to the next post based on the date order (publication date) of the posts themselves.
Essentially the buttons will move through posts in the order they are presented here: https://wordpress.com/posts/
There is no way to change this via HTML, to do that you will need to upgrade to our Business Plan, which will allow you to access the source code where this change would need to be made to the PHP source files, since WordPress is not coded in HTML directly.
Instead, we would advise that you consider adjusting the publication dates of your posts so that the chapters pub dates are in chronological order. This will allow the correct chapter to load correctly when you click either ‘previous’ or ‘next’ at the bottom of the current post. More info here: https://wordpress.com/support/schedule-a-post-or-page/#backdating
You may also wish to set up your own navigation by adding a navigation block at the bottom of each post you write. This will allow you to set up your own custom menu that lists all chapters in correct order: https://wordpress.com/support/full-site-editing/theme-blocks/navigation-block/
Hope that helps. Please let us know if you have any more questions.
- The topic ‘Changing Links for Next Post and Previous Post’ is closed to new replies.