[wp-trac] [WordPress Trac] #16784: Introduce post_type_archive_description()

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 7 12:09:27 UTC 2011


#16784: Introduce post_type_archive_description()
-------------------------+------------------------------
 Reporter:  thomask      |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Post Types   |     Version:  3.1
 Severity:  normal       |  Resolution:
 Keywords:               |
-------------------------+------------------------------
Changes (by scribu):

 * keywords:  close =>


Old description:

> as a new feature of custom post types of 3.1 is option to enable custom
> post type archive using 'has_archive' => true.
>
> Problem is, that this archive page got few limitations
> 1. it is not possible to add it using Nav menus (except direct Custom
> link)
> 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
>
> Also it is not obvious, that when you create a custom post type and
> taxonomy (with public=true) they are not visible on menu navigation page
> - you must make them visible using the top View menu (it took me a while
> to realize it)

New description:

 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

 Also it is not obvious, that when you create a custom post type and
 taxonomy (with public=true) they are not visible on menu navigation page -
 you must make them visible using the top View menu (it took me a while to
 realize it)

--

Comment:

 Nevermind, I see there already is a 'description' arg.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16784#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list