WordPress.org

Ready to get started?Download WordPress

Forums

Categories in a multidimensional array? (1 post)

  1. Gozlingo
    Member
    Posted 6 years ago #

    Hi,

    I need to do some clever formatting on my categories which involves looping through each category and applying different styles.

    Is there any way of retrieving the categories in a multidimensional array so that I can deal with categories & subcategories?

    Ideally I need the same as what the following function returns but I don't want it already formatted for me in a list, I just want it in an array:

    wp_list_categories('hide_empty=0&hierarchical=1&echo=0');

    Any ideas anyone?

    Thanks,
    Oliver

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 6 years ago by Gozlingo
  • This topic is not a support question
  • WordPress version: 2.3.3

Tags

No tags yet.