Just can’t seem to find the right answer, although it shouldn’t be difficult.
I want to exclude a page from the usual main menu, how can I exclude a page, without making the page invisible. I want to use a loose call-to-action button with a link to that page, that’s what I already managed to do.
I try to exclude several pages at once, like this:
<?php foreach($pages->visible()->not(page('about', 'contact')) as $p): ?>
This only excludes the first item. Am I doing something wrong?
(Reason for doing this: I want to use a custom menu that only contains these items at another place.)