Title: Conditional code
Last modified: August 18, 2016

---

# Conditional code

 *  [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/)
 * I would like put a conditional code like this:
 * if is home or if is page or if is an archive show soemthing
 * else
 * another thing
 * Is possible do it with wordpress ?
 * I would like show in an external page that call the header template a different
   thing in the sidebar.
 * what code i can use ?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/#post-389974)
 * Conditionals: [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
 * For the other question you still have to answer 🙂 – in your other thread.
 *  Thread Starter [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/#post-389979)
 * Thanks Moshu, i’m happy to speak with you.
 * Sorry for my english but i don’t speak very well 🙂
 *  Thread Starter [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/#post-389980)
 * if you understand i would like use a different template page or show the wp_header
   with conditional code to differentiate some thing in my external page 🙂
 *  Thread Starter [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/#post-389984)
 * Moshu i love you…conditional code works good in my external page
 * thanks a lot
 *  Thread Starter [Marcomail](https://wordpress.org/support/users/marcomail/)
 * (@marcomail)
 * [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/#post-390029)
 * how can i do this:
 * if is home and if is date and if is category
    echo etc etc
 * else
    echo etc etc

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Conditional code’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [Marcomail](https://wordpress.org/support/users/marcomail/)
 * Last activity: [19 years, 12 months ago](https://wordpress.org/support/topic/conditional-code/#post-390029)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
