Code: Select all
<?php
wp_reset_query();
if (is_home() ) {
echo 'ANYTHING YOU PUT INSIDE HERE ONLY SHOWS ON HOMEPAGE';
}
?>
Code: Select all
<?php
wp_reset_query();
if (is_home() ) {
echo '<h2>My Blog Sidebar</h2>
<div class="box">
<ul>
<li><a href="http://www.alinktrade.com/">Trades</a></li>
<li><a href="http://www.anotherlinktrade.com/">Hardlinks</a></li>
</ul>
</div>';
}
?>