WordPress.org

Ready to get started?Download WordPress

Forums

how to retrieve all wordpress category? (3 posts)

  1. bibekpokharel
    Member
    Posted 4 years ago #

    I've been using wordpress 2.8.5. what I'm trying to do is getting the category name of all the category created from wodpress admin and using it in my page some where....Please help....!!!

  2. s_ha_dum
    Member
    Posted 4 years ago #

  3. bibekpokharel
    Member
    Posted 4 years ago #

    Thanks..Meanwhile I also found something that worked for me..

    <?php
    $my_cat = get_categories();
    foreach((array)$my_cat as $cat)
    {
    echo $cat->cat_name;
    }
    ?>
    Cheers...!!

Topic Closed

This topic has been closed to new replies.

About this Topic