Title: Issue with functions.php IF statement or conditional statements
Last modified: August 21, 2016

---

# Issue with functions.php IF statement or conditional statements

 *  Resolved [betic1](https://wordpress.org/support/users/betic1/)
 * (@betic1)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/issue-with-functionsphp-if-statement-or-conditional-statements/)
 * I’m trying to implement a bit of code displaying social icons at the end of my
   posts and also on my index page, but am confused by the results. I used an if(
   is_* () or is_* ()) statement and it’s giving me 2 sets of results. I pasted 
   the code below. Without the OR statement, it simply posts the social icons once
   on whatever page I specify, with the AND statement, it’s displaying one set of
   social icons and below that another set on both the front page and the single
   pages.
 * I tried an elseif statement, but I’m unable to get that to work for some reason.
   The global $post and the following ?> for that seem to be breaking it. So, I’m
   up for any ideas as it’s probably something simple I’m missing.
 * Here’s the link to the code:
 * [http://pastebin.com/wuwa7r0g](http://pastebin.com/wuwa7r0g)

Viewing 1 replies (of 1 total)

 *  Thread Starter [betic1](https://wordpress.org/support/users/betic1/)
 * (@betic1)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/issue-with-functionsphp-if-statement-or-conditional-statements/#post-4280393)
 * Never mind. This wasn’t making sense because I had the shortcode to call this
   function in 2 separate files: the actual single.php and the content.php which
   is why it showed up twice.

Viewing 1 replies (of 1 total)

The topic ‘Issue with functions.php IF statement or conditional statements’ is closed
to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [betic1](https://wordpress.org/support/users/betic1/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/issue-with-functionsphp-if-statement-or-conditional-statements/#post-4280393)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
