I inserted “> <?php echo $next?>”, so the button is named like the next project, but it also displays the surrounding folder. So what I want to achieve is a button name like this: “> Project-2” and for now it displays “> Projects/Project-2”
Is there a way to remove the folder name? If I type “$next = $subpage” instead of “$next = $page”, the page crashes.
Another quick question:
I have project-pages and also project-pages with a submenu of project pages (see attached screenshot)
When I jump through the pages with the $next function, the pages with a submenu will not automatically jump to the first inner project page.
I thought about giving every page I want to jump through a specific tag and then tell the $next function to only jump to next page which has this tag… but I think there is a much simpler solution
In the Screenshot, project-1,2,4 are simple project pages whereas project-3 has its pages inside – I would like to jump from project-2 directly to project-3-1 and also the other way around (project-3-7 → project-4)