The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other WordPress custom menus

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #44300

    Can they be created from the functions.php?

    I want to avoid leaving responsibility to the user to create/update the menu, which will be based on a custom post type.

    I want to avoid simply listing them using get_posts() as the user has nowhere to reorder the menu if they so wish, and creating the menu before handing over to the user is fine, but it relies on the user having to add/update/delete posts in the future.

    Ideally, I want to create a function that gets all posts under the custom post type, creates a custom menu with custom links (need to link to an ID on the page rather than a single.php)

Viewing 1 post (of 1 total)
  • The forum ‘Other’ is closed to new topics and replies.