WordPress.org

Support

Support » How-To and Troubleshooting » PHP “If” help

PHP “If” help

  • I would like to specify a graphic that will appear in my sidebar based on which php file is calling it. Problem is, I’m not a coder. I want something essentially like this:
    if thisfile == index.php then pic1.jpg
    else pic2.jpg
    endif
    thisfile would need to represent the name of the current php file that contains this code. And, of course, the rest of the syntax would need to be written correctly.
    Thanks in advance to any coders who can help.
    http://www.newscorpse.com

Viewing 1 replies (of 1 total)
  • I don’t have the file handy now so i can’t copy and paste, but look into the conditional lines in the index of the latest kubrick release. you’ll find what you’re looking for (i think).

Viewing 1 replies (of 1 total)
  • The topic ‘PHP “If” help’ is closed to new replies.
Skip to toolbar