Title: Conditional on if custom posts
Last modified: August 31, 2016

---

# Conditional on if custom posts

 *  [Vince_M](https://wordpress.org/support/users/vince_m/)
 * (@vince_m)
 * [10 years ago](https://wordpress.org/support/topic/conditional-on-if-custom-posts/)
 * I have a custom post that is pulling dynamically from a results page. If the 
   athlete name is in the result then it also shows up on the athlete profile page.
   What I would like is if the athlete has no results I would like the header to
   not show. How would I go about doing this. Right now I just have the header (
   Results) hard-coded in.

The topic ‘Conditional on if custom posts’ is closed to new replies.

## Tags

 * [conditional](https://wordpress.org/support/topic-tag/conditional/)
 * [custom post](https://wordpress.org/support/topic-tag/custom-post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Vince_M](https://wordpress.org/support/users/vince_m/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/conditional-on-if-custom-posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
