[wp-trac] [WordPress Trac] #32910: Main url for Post Type for WordPress Menus
WordPress Trac
noreply at wordpress.org
Tue Jul 7 21:01:17 UTC 2015
#32910: Main url for Post Type for WordPress Menus
-------------------------------+-----------------------------
Reporter: bhubbard | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.2.2
Severity: normal | Keywords:
Focuses: administration |
-------------------------------+-----------------------------
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.
Example:
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 example.com/testimonial/ 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:
[[Image(https://www.evernote.com/shard/s1/sh/f11122f4-0180-4ff7-b26e-
ffb09e44567a/0a2abab4f3445806/res/92644015-6e0d-47b1-8c5f-
38339d41c027/skitch.png?resizeSmall&width=832)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32910>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list