On my portfolio page there is an arrow for Next and Back in the header that does not link to my other portfolio items in the parent portfolio. There is another Next and Back button near the bottom of the page.
I have one portfolio item named "The Tyndall at Robertson Hill" and another named "Colinas Crossing"
Their parent Portfolio is "Real Estate"
When I click next or back in either portfolio item page, it does not go to the other, but instead goes to another demo portfolio item page.
So when I imported the theme it published over 362 portfolio items, but I am using only 6 of those portfolio items. I would like to use the next function, but I don't want it to link to all of these other pages, I want it to only link to its portfolio group.
Hi,
On my portfolio page there is an arrow for Next and Back in the header that does not link to my other portfolio items in the parent portfolio. There is another Next and Back button near the bottom of the page.
Please advise on how to change this.
Thank you
Hi,
For prev/next navigation we use next wordpress functions:
You can find them in content-page.php template. Info about this functions you can find in wordpress documentation.
https://codex.wordpress.org/Function_Reference/previous_post_link
https://codex.wordpress.org/Function_Reference/next_post_link
https://codex.wordpress.org/Function_Reference/get_previous_post
https://codex.wordpress.org/Function_Reference/get_next_post
Hi,
So when I imported the theme it published over 362 portfolio items, but I am using only 6 of those portfolio items. I would like to use the next function, but I don't want it to link to all of these other pages, I want it to only link to its portfolio group.
How do I do this?
You can move other portfolios items to trash.
Or you can change template to use this functions only with same categories. For example you need replace this:
with:
in content-page.php template.
Better do this with child theme.