On my website, I use post navigation that I have generated through the Post navigation block element:
Navigation through entries is only shown in posts labeled with “portfolio” tag.
But in the last and first post labeled as “portfolio” appear the next and previous posts that are not labeled as “portfolio”, and this is not suitable.
I have tried to use the “REMOVE CONTAINER CONDITION” block options with the “In same term” check box checked, but nothing seems to happen, entering in the TAXONOMY tag or portfolio field nothing happens either. The documentation also does not explain how this option works, any ideas?
You should be selecting the headline blocks which represent the next/previous posts’ tiles, and set the same term from its GP dynamic data option, something like this:
If you’ve enabled dynamic data for the headline from the sidebar(GB) option, make sure you disable them to avoid conflicts with the GP dynamic data option.
Hi Ying, thank you very much for the info, I have followed your instructions, but it doesn’t seem to work, besides, when I reverted the changes to return to the original state, something has happened that the post navigation has disappeared completely.
I don’t know if it’s related, but each post , by SEO, can belong to different categories: graphic design, book design, branding, logos, etc.
do some of the posts have multiple categories ?
theres no (easy) way to do that using the core Post Navigation functions. It has limited args:
simply put it can exclude posts with a specific term, and it can display posts of the same term
What it doesn’t do is INCLUDE ONLY posts of a specific term.
Alternatives such as custom post navigation would require custom development. Alternatively if the Portfolio posts were there own custom post type then you could limit the nav to those.
Hi David, I understand. For now I will remove the post navigation and look into the options you raise.
Once again, thank you all for your help!
Sorry we didn’t have an answer for this. Ill do some research for the future.
Glad to be of some help
Don’t worry David, sometimes we users insist on doing things that are not useful or practical, the GP team is very patient with our requests!
As general Hannibal said, “I shall either find a way, or make one”. There are always alternatives!
That is really appreciated !
- You must be logged in to reply to this topic.