Parent and Child Categories in Custom Menus

  • Unknown's avatar

    Hi,
    I am an author with two books, and I am trying to create a “Books” menu item in my custom menu with two child menu items, one for each of the two books I have written. The way I have found to do this is to create a “Books” category with two child categories, one for each book. I have then added these to the custom menu as a nested set, with “Books” as the parent item and the two book titles as the children menu items. This works perfectly except for the fact that when I post to either of the child categories (i.e. the individual book titles) the post also appears on the parent category page (i.e. “Books”), which is a little confusing.

    Is it possible to avoid this, either by:

    – (ideally) determining which posts are inherited through to the “Books” parent category, or

    – removing the parent category page altogether, so that the “Books” parent menu item is not clickable, and simply provides its children menu items on mouseover.

    I hope I have explained that clearly enough! Thanks so much for your help.

    The blog I need help with is: (visible only to logged in users)

  • What you could do, is create a Custom Link in your menu called “Books” that points to “#” (not any http:// address), and then use the two book pages as children to that one.

    The “Books” menu item will then still be clickable, but it won’t point to another page — it will actually point to the page you’re currently on, so clicking on it will take the user to the top of the page.

  • Unknown's avatar

    Thank you Senff, this works a treat! Very grateful.

  • The topic ‘Parent and Child Categories in Custom Menus’ is closed to new replies.