i am having problem of adding menus to pages .like i want to add all my bike company categories in bike page and all cars categories in car page. how should i do ?
i am having problem of adding menus to pages .like i want to add all my bike company categories in bike page and all cars categories in car page. how should i do ?
First of all you need the "Widget logic plugin". It allows you to display certain widgets on certain pages only. Install this plugin and activate it. Afterwards, create two different menus. One for the bikes page and one for the cars page. In the widgets section of your appearance tab, drag two custom menus onto active widgets area and enter appropriate code for the widget logic.
On my website Human Anatomy, which is also based on pages instead of posts, I have done the same trick. On the basic anatomy section, I wanted to display only pages that are related to basic anatomy of human body. So I noted the ID of the page basic anatomy and entered the following line in the widget logic area of the custom menu.
is_page(page id) || is_child (page id)
This tells wordpress to show the current menu of the page having "page id" you enter and also on all children of the current page.
I hope you would extract something out of my reply.
This topic has been closed to new replies.