Title: If/Else help
Last modified: August 19, 2016

---

# If/Else help

 *  [nzbullet](https://wordpress.org/support/users/nzbullet/)
 * (@nzbullet)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/ifelse-help/)
 * Hi everyone,
 * I am trying to add a code to my posts whereby if the site is viewed from an iPhone
   it shows a Youtube URL (with image) but if viewed from a desktop it shows a podcast
   enclosure.
 * It is something like this:
 *     ```
       IF iphone show [YouTube]wkhdjtry[/YouTube]
   
       Else show [Podscast]http://www.site url to podcast.m4v[/Podcast]
       ```
   
 * Basically I only want to show the Youtube Imagae and URL when viewed from the
   iPhone and not when viewed from the desktop.
 * FYI – The YouTube links and Podcast change for every post.

The topic ‘If/Else help’ is closed to new replies.

## Tags

 * [else](https://wordpress.org/support/topic-tag/else/)
 * [if](https://wordpress.org/support/topic-tag/if/)
 * [iphone](https://wordpress.org/support/topic-tag/iphone/)

 * 0 replies
 * 1 participant
 * Last reply from: [nzbullet](https://wordpress.org/support/users/nzbullet/)
 * Last activity: [17 years, 7 months ago](https://wordpress.org/support/topic/ifelse-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
