Unable to identify a nav_menu_item by slug (1 post)

  1. Zambrano Sergio
    Posted 4 years ago #

    I can't identify nav_menu_items to properly format them with a different icon each.
    Using an ID-based class is not an option since all sites use the same template and same main pages.

    I can set a DIFFERENT slug for the nav_menu_items, but not the same (it seems wp core is not ready to keep them apart from the actual post safely, yet)

    I tried using menu_order, but it's not safe.

    Adding classes to the menues won't export to the other blogs when exporting the pages (I'll make a set of master pages in one site and then export them to the others)

    Could you please, since using the same post_title or post_name is not an option, make a new function to add the post_name to the li class, somehow?


Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by Zambrano Sergio
  • This topic is not resolved
  • WordPress version: 3.2.1