[wp-trac] [WordPress Trac] #16784: Custom post type archive limited
WordPress Trac
wp-trac at lists.automattic.com
Mon Mar 7 10:45:41 UTC 2011
#16784: Custom post type archive limited
-------------------------+------------------------------
Reporter: thomask | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Types | Version: 3.1
Severity: normal | Resolution:
Keywords: close |
-------------------------+------------------------------
Changes (by duck_):
* keywords: => close
Comment:
Replying to [ticket:16784 thomask]:
> 1. it is not possible to add it using Nav menus (except direct Custom
link)
#16075
> 2. if using the standard archive.php page, the common function for
getting archive page name (e.g. single_tag_title) or description (e.g.
tag_description) do not work - the best now is to use
get_queried_object()->name resp. get_queried_object()->description
`post_type_archive_title`. There is no way that `single_tag_title` is
supposed to work as it is clearly for use with tag archives. You can also
use `is_post_type_archive` to determine if the current page is a post type
archive.
Suggesting close as dupe of #16075 for the first problem.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16784#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list