Support » Plugin: Navigation Menu IDs & Classes » Custom post types

  • Resolved Cultivate


    Is there anyway to get the plugin to add the current_page_item class to custom post type menu items?

    I have a custom post type setup to display job posts with the standard posts appearing under the news menu item. When i click on the Jobs menu item to display the job posts the news menu item has the current_page_item class so the wrong item is highlight.

    Any help appreciated.

Viewing 1 replies (of 1 total)
  • Plugin Author Aaron T. Grogg


    This sounds like an issue with your category structure…

    WP handles the logic behind which HTML elements should get “current” status, including:

    • current-menu-item
    • current-menu-parent
    • current-menu-ancestor
    • current-page-item
    • current-page-parent
    • current-page-ancestor

    All of the above are items you can choose to include or exclude from your final mark-up, so, if something is appearing in the wrong place, it has to do with your nesting structure, not something WP or the plug-in is doing…

    Hope this helps, if you’d like deeper help, feel free to contact me directly, and please provide a URL where I could see exactly what you mean.


Viewing 1 replies (of 1 total)
  • The topic ‘Custom post types’ is closed to new replies.