Title: Custom category loop
Last modified: August 5, 2019

---

# Custom category loop

 *  [traveler](https://wordpress.org/support/users/visualeight/)
 * (@visualeight)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/custom-category-loop-2/)
 * I’ve looked and not had any luck with what I’m trying to find, I want to have
   a homepage that features no posts but only 12 parent categories with their descriptions,
   and then show up to 8 subcategories per parent (some parents have more subcategories
   but most are under 8). There will be no posts on the homepage.
 * Most everything I’ve come across deals only with looping through posts.
 * Is there a better way than using `get_categories()` and then using `foreach` 
   loop to list them out on the page?
    -  This topic was modified 6 years, 9 months ago by [traveler](https://wordpress.org/support/users/visualeight/).

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 9 months ago](https://wordpress.org/support/topic/custom-category-loop-2/#post-11801775)
 * There is [wp_list_categories()](https://developer.wordpress.org/reference/functions/wp_list_categories/).

Viewing 1 replies (of 1 total)

The topic ‘Custom category loop’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 9 months ago](https://wordpress.org/support/topic/custom-category-loop-2/#post-11801775)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
