Title: Different post format based on post type in the loop
Last modified: August 20, 2016

---

# Different post format based on post type in the loop

 *  [KaayB](https://wordpress.org/support/users/kaayb/)
 * (@kaayb)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/different-post-format-based-on-post-type-in-the-loop/)
 * Hello,
 * Im pretty new to wordpress and have created a custom post type called dogs.
 * I would like to use the orginal index.php and just add a if statement that checks
   if the post type is dogs and then use another format to display that specific
   post for that post types in the loop.
 * So to sum up:
 * IF post_type = dogs THEN show special post format in loop
    ELSE show orginal 
   post format in loop
 * Have seached but can’t get any if statements to work properly.
    All inputs higly
   appreciated.

Viewing 1 replies (of 1 total)

 *  [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * (@rvoodoo)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/different-post-format-based-on-post-type-in-the-loop/#post-2335763)
 * by post format… are you referring to that actual built in post formats in WordPress?
   like aside, status, ertc
 * Or do you just mean you want the post to be formatted differently?
 * If the latter, what sort of different, stylistic changes, different layout, etc

Viewing 1 replies (of 1 total)

The topic ‘Different post format based on post type in the loop’ is closed to new
replies.

## Tags

 * [custom post type](https://wordpress.org/support/topic-tag/custom-post-type/)
 * [post format](https://wordpress.org/support/topic-tag/post-format/)
 * [the-loop](https://wordpress.org/support/topic-tag/the-loop/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [Rev. Voodoo](https://wordpress.org/support/users/rvoodoo/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/different-post-format-based-on-post-type-in-the-loop/#post-2335763)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
