WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to find out the category Id?

[Resolved] How to find out the category Id?

  • <?php
         $category_id = get_cat_ID('Category Name');
         $q = 'cat=' . $category_id;
         query_posts($q);
         if (have_posts()) : while (have_posts()) : the_post();
    
         the_content();
    
         endwhile; endif;
    ?>

    I am using the above code to find the category id ,
    I need to know the possibilities to find the category id manually (By admin panel) like a page or post id .

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to find out the category Id?’ is closed to new replies.