• Sup bros.

    I made my custom post type ’employees’ and added a few, but idk the correct way to add a link to my menu that says ‘Employees’ with a nested ul linking to each post of that type.

    My theme is currently using get_pages() to build the navigation, but I’d be fine switching to the wordpress custom menu system if I have to.

    How do I list these custom posts in my menu?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter farzher

    (@farzher)

    The only way I can find of doing this is to create a new page, give it a custom page template, and query your custom posts and echo them out there.

    That almost works, but then that page in the menu won’t have a nested ul of all the custom post types.

    bump

    Thread Starter farzher

    (@farzher)

    Is using a custom query the only way of doing this?
    That’s a little lame WP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Easiest way to display custom post types in main nav menu?’ is closed to new replies.