Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#32910 closed enhancement (duplicate)

Main url for Post Type for WordPress Menus

Reported by: bhubbard's profile bhubbard Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.2.2
Component: Posts, Post Types Keywords:
Focuses: administration Cc:


When a developer uses register_post_type and sets show_in_nav_menus to true it allows users to view a list of all the items in that post type and link to them in a WordPress menu. The problem is many times a post type has an archive page that developer probably expects users to use.

Register a Post Type called Testimonials, like say in jetpack or testimonials-by-woothemes. So using jetpack as a current example, I know as a developer that I can go to and all my testimonials will display based on the theme's archive-testimonial.php file, archive.php file, index.php file, etc. But its not obvious to a user that they can link to the archive or how they can link to this archive page. Currently they must use the Custom Links menu feature to add this link to the menu. This also assumes the user would know what that archive url would be.

Maybe we can add something like show_in_menu_archive_link as a parameter for register_post_type which will then display the link for users while giving developers the option to hide it if needed. We would also probably want to add a new label as well.

I'm thinking the link should be display above the the other links, I provided a screenshot as an example:

Change History (1)

#1 @helen
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi bhubbard, thanks for the ticket! This is a long-standing request over in #16075 - I think the question is mostly "where is the most sensible place for this link to go?"

Note: See TracTickets for help on using tickets.