• nutandevjoshi

    (@nutandevjoshi)


    This is my code

    $manly_manners_cat = get_categories( $args );
    $category_id = $manly_manners_cat[0]->term_id;

    Thanks

Viewing 1 replies (of 1 total)
  • etestonline

    (@etestonline)

    term_id is the category id.
    And
    $manly_manners_cat = get_categories( $args );

    this display array of category details like name,id,slug etc

Viewing 1 replies (of 1 total)
  • The topic ‘What is term_id and what output i should expect from this code?’ is closed to new replies.