Title: Need some php troubleshooting
Last modified: August 19, 2016

---

# Need some php troubleshooting

 *  Resolved [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-some-php-troubleshooting/)
 * I’ve tried to cobble together some code that will generate a slightly different
   image depending on which part of the site you’re in. Unfortunately, the code 
   tanks the entire site, so I imagine there’s some basic syntax error that I’ve
   overlooked. I really don’t understand even the basics of php, so if you could
   tell me how to fix this I’d be very grateful:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_

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

 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-some-php-troubleshooting/#post-1841319)
 * Ok, sorry for that. Here’s a link to the code in the pastebin:
 * [http://wordpress.pastebin.com/KsaGrNRS](http://wordpress.pastebin.com/KsaGrNRS)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-some-php-troubleshooting/#post-1841327)
 * Try [http://wordpress.pastebin.com/6gaSRR35](http://wordpress.pastebin.com/6gaSRR35)
   (
   Warning: untested)
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-some-php-troubleshooting/#post-1841330)
 * Thanks, very much esme. As it happens, the code didn’t work, but I spotted and
   corrected a repeated curly bracket in my original code and it’s now more-or-less
   working. I’ll now see if I can figure out how to get it completely working.
 *  Thread Starter [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * (@haecceity)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/need-some-php-troubleshooting/#post-1841374)
 * Ha! I got my original code working perfectly. PHP rocks. I’m looking forward 
   to learning more.

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

The topic ‘Need some php troubleshooting’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [Bodhipaksa](https://wordpress.org/support/users/haecceity/)
 * Last activity: [15 years, 5 months ago](https://wordpress.org/support/topic/need-some-php-troubleshooting/#post-1841374)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
