followtheboat
Programmer
I'm a complete noob when it comes to PHP so this should be an easy one for people to answer. I just want to include some html depending upon a condition. How do I do it? I'm using an include as an example but want to replace the include with the html:
Any help appreciated!
Code:
<?php
if (is_page('2')) {
include('sidebar_about.php');}
else {
include('sidebar_home.php');}
?>
Any help appreciated!