get category name using following comment

Support Forums Programming and Development WordPress get category name using following comment

This topic contains 0 replies, has 1 voice, and was last updated by  gnana sekaran 7 years, 5 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #1120

    gnana sekaran
    Participant

    Using below function we can get category name from slug

    $category_slug // cat slug name
    $catObj = get_category_by_slug($category_slug);
    $catName = $catObj->name; //get cat name

Viewing 1 post (of 1 total)

You must Login/Register to reply to this topic.