static pages subsets
-
In a site I’m doing for a client, three menus are required, topmenu, sidemenu and a bottomenù.
Each of the menù links will point to a static page.
I cannot hardcode the links in the theme, they should be dynamic, the final user must be able to edit them with ease.
I thought about tagging the pages, but WP doesn’t let you tag static pages, only posts.
I tought about applying a category, but it’s not allowed to do so.
I thought of using the “Links” admin menù, but I never did, so I’m asking if this should be right way to do so. The first thing I notice is that if I change the siteurl in the future, I’ll have to edit all the links. I don’t like this solution.
The solution I’m going to implement is to make 3 parent pages and use the child of each parent as a subset for each one of the three menus, and in each wp_list_pages call, I will exclude_tree the parents I’m not interested in. This seems good, but I won’t like to have nested paths /aaa/bbb for every page in the menus, for some pages it would be enough /aaa.
Sorry for the long post, thank you in advance for any tip.
- The topic ‘static pages subsets’ is closed to new replies.