demssite
Member
Posted 8 months ago #
Like i say on the topic title i'm trying to get the previous and next sibling name and link page, i'll try to explain. For example, i've got 5 static pages: page1, page2, page3, page4 and page5 and what i whant is to get inside of each one the link to the next and the previous one. For example in page3 i want to get the links to go to page2 and page4 and the respective titles for the link.
Hope you understand what i mean.
Thanks in advance.
Diego.
This is what I use:
[Code moderated as per the Forum Rules. Please use the pastebin]
demssite
Member
Posted 8 months ago #
Hi Jackson, i recovered the code from my email and i think is thin one: http://pastebin.com/SUCUP6qu but there's one problem with this for me: mi structure is like this:
SectionA
SectionB
SubSectionB1
SubSectionB2
SubSectionB3
SubSectionB4
SectionC
And i want the previous/next works only between subsections and doens't jump betueen sections as well. I have a custom page for the subsection, to insert this code but it jumps to the previous(SectionA) and the next (SectionC).
Thanks in advance.
Diego.
demssite
Member
Posted 8 months ago #
I've found a plugin that do this thing -> http://wordpress.org/extend/plugins/next-page-not-next-post/ , but i would like to know how to do manually just as a personal exercise.
Thanks.