Main Page Sidebar Display Once

How would someone display an ad only on the main page sidebar?

The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home() Conditional Tag, that task is made easy.

< ?php if(is_home()) : ?>
~ad code here ~
< ?php endif; ?>

Leave a Reply