• Greeting,

    am using this function into my function.php to display category in page

    `//add page category abd tag{
    function add_taxonomies_to_pages() {
    register_taxonomy_for_object_type( ‘category’, ‘page’ );
    register_taxonomy_for_object_type( ‘post_tag’, ‘page’ );
    }
    add_action( ‘init’, ‘add_taxonomies_to_pages’ );
    //}

    However, when am creating a category into the page section, the same category is created into the post section.

    I’d like to know if there is a solution to split those category ?

    am using get_categories to display category in front page, but i saw on google that get_categories() have no filter with post_type page or post.

    any idea ?
    BR
    Edouard

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘category and page’ is closed to new replies.