Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #21378, comment 7


Ignore:
Timestamp:
03/04/2014 12:21:24 PM (11 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #21378, comment 7

    initial v1  
    44Use [http://codex.wordpress.org/Function_Reference/register_taxonomy_for_object_type register_taxonomy_for_object_type()] or the `taxonomies` argument of [http://codex.wordpress.org/Function_Reference/register_post_type register_post_type()] to add the default `category` taxonomy (or a custom taxonomy) to a custom post type.
    55
    6 Use [https://codex.wordpress.org/Function_Reference/get_the_category get_the_category()] retrieve categories assigned to the post (from the default `category` taxonomy).
     6Use [https://codex.wordpress.org/Function_Reference/get_the_category get_the_category()] to retrieve categories assigned to the post (from the default `category` taxonomy).
    77
    88Use [https://codex.wordpress.org/Function_Reference/get_the_terms get_the_terms()] to retrieve other terms assigned to the post (from custom taxonomies).