I am building a simple website with a number of pages, each of which is grouped.
Let’s say my website has roughly 20 pages, grouped into 5 categories. So I want my navbar to display the 5 categories, and each category, on rollover, displays the pages created under it.
Now since I am creating my pages as pages and not posts, I understand that “categories” are not available. So I am creating them as sub-pages. And I am creating each “category” as a page.
My problem: I only created these “pages” for the purpose of grouping the “sub-pages” in the navbar. But none of these “pages” are actual pages, so I don’t want any of them to be clickable. What I want is if someone clicks on the “page” itself in the navbar, they should be taken to the first sub-page of that category (or page).
I would be grateful for any solutions.
(Side note: This seems like an extremely common situation, and yet, after hunting around for quite a while, I see nothing addressing the issue. I’m a web programmer with over a decade experience, but a relative newbie to wp, and I find this kind of situation repeating itself over and over.)
- The topic ‘I want only my sub-pages to be clickable in the navbar’ is closed to new replies.