Ready to get started?Download WordPress


[resolved] Need some php troubleshooting (5 posts)

  1. Bodhipaksa
    Posted 4 years ago #

    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. Please use the pastebin]

  2. Bodhipaksa
    Posted 4 years ago #

    Ok, sorry for that. Here's a link to the code in the pastebin:


  3. esmi
    Forum Moderator
    Posted 4 years ago #

    Try http://wordpress.pastebin.com/6gaSRR35
    (Warning: untested)

  4. Bodhipaksa
    Posted 4 years ago #

    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.

  5. Bodhipaksa
    Posted 4 years ago #

    Ha! I got my original code working perfectly. PHP rocks. I'm looking forward to learning more.

Topic Closed

This topic has been closed to new replies.

About this Topic