PHP help.
-
This might be a snap, but I’m a n00b when it comes to php.
I wanted to post this topic in the advanced section, but you need to be a moderator to do so.
This is the script that I need to modify:
<?php $aOptions = OnDemand::initOptions(false); ?>
<?php
if ( have_posts() ) { the_post(); rewind_posts(); }
if ( in_category($aOptions[‘sideblog-cat’]) ) {
include(TEMPLATEPATH . ‘/category-blog.php’);
} else {
include(TEMPLATEPATH . ‘/category-video.php’);
}
?>It’s a script used in a purchased WordPress theme. It currently directs visitors (based on their menu choice) to either the “category-blog.php” file or to the “category-video.php” file.
I need the above script to reflect 3 options. The third option would be “category-music.php”, so it would be “…blog.php” or “…music.php”, else “…video.php”.
I tried using “elseif”, but I didn’t have any success. Hopefully someone can help me out based on the info provided. Let me know if you require additional info ;D
- The topic ‘PHP help.’ is closed to new replies.