WordPress.org

Make WordPress Core

Changes between Initial Version and Version 4 of Ticket #16784


Ignore:
Timestamp:
03/07/11 12:09:27 (3 years ago)
Author:
scribu
Comment:

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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16784

    • Property Summary changed from Custom post type archive limited to Introduce post_type_archive_description()
  • Ticket #16784 – Description

    initial v4  
    1 as a new feature of custom post types of 3.1 is option to enable custom post type archive using 'has_archive' => true. 
    2  
    3 Problem is, that this archive page got few limitations 
    4 1. it is not possible to add it using Nav menus (except direct Custom link) 
    5 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 
     1if 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 
    62 
    73Also 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)