Title: create a If statement
Last modified: August 18, 2016

---

# create a If statement

 *  [ianternet](https://wordpress.org/support/users/ianternet/)
 * (@ianternet)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/create-a-if-statement/)
 * I am trying to do a if statement, example:
 * If this is homepage, SHOW THIS if NOT Do Not Show This.
 * the goal is to only show certain things on the homepage and add certain things
   on posts and pages.
 * I do not like the fact that the sidebars can not be edited and always are consistant,
   is there a way I can adjust this?
 * from my last CMS I had easy php if statements to help me adjust what shows on
   what page.
 * I can not find the answer anywhere, I see that it is possible as I see if statements
   within wordpress, but I do not know how to call homepage, post, pages, etc. and
   inserting the variables
 * help please

Viewing 1 replies (of 1 total)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/create-a-if-statement/#post-594928)
 * General: it is bad to bring your expectations from another software to a new 
   one – it will make your life miserable.
 * 1. [http://codex.wordpress.org/Conditional_Tags](http://codex.wordpress.org/Conditional_Tags)
   
   2. you can edit the sidebar(s) as much as you want – what stops you? 3. The Codex
   is a good place to find info: [http://codex.wordpress.org/Main_Page](http://codex.wordpress.org/Main_Page)

Viewing 1 replies (of 1 total)

The topic ‘create a If statement’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [moshu](https://wordpress.org/support/users/moshu/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/create-a-if-statement/#post-594928)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
