Title: Conditional loop for category
Last modified: February 7, 2018

---

# Conditional loop for category

 *  [abappa24](https://wordpress.org/support/users/abappa24/)
 * (@abappa24)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/conditional-loop-for-category/)
 * I want to show different style for parent and child category how can i do it?
   
   And how can i show only parent category name and 3 post from this category like
   1.parent category name1 ……3post of this category…… 2.parent category name 2 ……
   3post of this category……

Viewing 1 replies (of 1 total)

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/conditional-loop-for-category/#post-9947900)
 * Create a child theme and make a custom page template for displaying categories,
   details here:
    [http://codex.wordpress.org/Child_Themes](http://codex.wordpress.org/Child_Themes)
   [https://developer.wordpress.org/themes/basics/template-hierarchy/](https://developer.wordpress.org/themes/basics/template-hierarchy/)

Viewing 1 replies (of 1 total)

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

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/conditional-loop-for-category/#post-9947900)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
