Forum
Ignore current in navigation
Is it possible to ignore the current page using an option in the perch_pages_navigation()
function?
I've got a section with a few pages in it and I'd like to list the siblings only as this nav will appear at the bottom of the page saying something like "You've read that, now check out the other great pages in this section of the website".
https://docs.grabaperch.com/functions/navigation/perch-pages-navigation/
Thanks for keeping me right :)
You can test for
current_page
in the template.https://docs.grabaperch.com/templates/navigation/
Ah cool, so I'd just pass in a new template as an option outputting everything but the current page with that conditional. Cheers Drew :)
These opts:
plus this template:
do the trick