The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

WordPress custom menus

  • # April 22, 2013 at 11:21 am

    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)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed