A Searchable Page

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 7 years, 1 month ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12067
    Trent Bowen
    Trent Bowen
    Participant

    Thank you for taking the time to help me. We are trying to make a certain page searchable http://www.aecontrol.us/productsnav/ we contacted the UberMenu plugin group and they said “UberMenu doesn’t create any custom post types. The standard WordPress post type for menu items is nav_menu_item.” I can’t find nav_menu_item as one of the post types how would I go about adding that in and making sure it matched with that page?

    We have test page for the search while we are trying to get it to work on http://www.aecontrol.us/table-test-realm/ which is temporarily password protected 1qazxsw23edc

    Thanks for your help. Let me know if you need any clarification.

    Thanks,
    Trent Bowen

    #12071
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi Trent,

    If I understand correctly you want to search and return the nav_menu_item custom post type as well. There is a way of making it happen, but it may not work as expected, as navigation menu items are a bit different from regular post types.

    Anyways, by placing this custom code snippet into the functions.php file in your active theme directory will include the nav_menu_item custom post type as well for searching:

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.