Filepaths Advice on syntax please
-
Ok Ive been trying to work with some code I found on this site. The code Im talking about can be seen at the bottom of this page, but not isnt really needed to answer my question. In particular Im looking at this specific piece of code : include(TEMPLATEPATH . ‘/sidebar80.php’)
My question is about syntax and I wish to know what is right. If my filepath is https://www.whitbyseaanglers.co.uk/cms/wp-content/themes/fishy-11/
which of these is right ?? or are they all wrong
1. (https://www.whitbyseaanglers.co.uk/cms/wp-content/themes/fishy-11/ . ‘/sidebar80.php’)
2. (‘https://www.whitbyseaanglers.co.uk/cms/wp-content/themes/fishy-11/sidebar80.php’)
3.(https://www.whitbyseaanglers.co.uk/cms/wp-content/themes/fishy-11/ ‘/sidebar80.php’)
—————————————————
<?php if ( (is_category('80')) { include(TEMPLATEPATH . '/sidebar80.php'); } elseif ( (is_category('81')) { include(TEMPLATEPATH . '/sidebar81.php'); } else { include(TEMPLATEPATH . '/sidebar.php'); } ?>
- The topic ‘Filepaths Advice on syntax please’ is closed to new replies.