[wp-trac] [WordPress Trac] #16075: Add Post Type Archives support in Nav Menus
WordPress Trac
noreply at wordpress.org
Fri Oct 3 00:37:05 UTC 2014
#16075: Add Post Type Archives support in Nav Menus
-----------------------------------+-----------------------------
Reporter: matzipan | Owner:
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Future Release
Component: Menus | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch ui-feedback | Focuses:
-----------------------------------+-----------------------------
Comment (by knutsp):
An archive i WordPress is mostly referring to a virtual page that offers
(custom) posts that satisfy some conditions, always a post type, sometimes
by date, author or belonging to a taxonomy term. In this regard the "blog"
page is the archive for posts.
But an archive is sometimes also used as the opposite of the "blog" page,
a virtual page that has some constraints other that post type.
With the introduction of custom post types a virtual page that would loop
over all the posts of that type was also called an archive. The only
"archive" that is not always called an archive is the blog page, offering
all posts (of post type post).
We have the conditional function `is_post_type_archive()`. I suggest the
definition of a post type archive, in this context, is a virtual page that
will make this function return true. For now, don't include the built-in
post types, as they get special treatment by core anyway.
An archive menu item type should be linked to the slug of the custom post
type. Therefore it needs to be a special type, not "custom" (a static link
that doesn't respect the actual slug).
I don't see why all non-custom menu item types should be linked only to
"objects", in the meaning that each item is tied to a row in a database
table (posts, terms users) for the current schema.
I also fail to see why adding another accordion section is so bad.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16075#comment:79>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list