Hi Joern,
Hope all's well with you and yours. You helped me set up my adverts to run on different pages a while ago using conditional tags. That's been great but I've recently added OIO publisher onto the site and now I'm trying to work out how to format the code to include those.
The idea is to sell individual pages to different companies, rather than adding all advertisers to all pages. So for example - this page here
http://www.iamstaggered.com/wedding-speeches would have a sidebar advert from this company http://www.burnthetoast.com (they're already a sponsor so they're actually on most pages at the moment).
That's all well and good but how do I actually input that into my current header and sidebar.php? For example the sidebar code currently looks like this
<div id="sidebar">
<div id="sidebar-ads">
<?php if ( is_page('Favourbrook') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/testadvertsidebar.png" alt="" width="300px" height="250px" />
<?php } elseif ( is_category('randallmurrow') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/Randallad.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( is_category('tobyluper') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/hemingwayadvert.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( is_page('stag-do-company-the-stag-company') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/stag-temporary-sidebar.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( is_page('stag-do-company-designaventure') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/DESIGNAVENTURE_SIDEBAR_1.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( is_page('style') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/swaggerandswoonsidebar1.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( is_page('wedding-accessories') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/swaggerandswoonsidebar1.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( is_single('wedding-ties-explained') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/swaggerandswoonsidebar1.jpg" alt="" width="300px" height="250px" />
<?php } elseif ( in_category('1640') ) { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/tiernansidebar.jpg" alt="" width="300px" height="250px" />
<?php } else { ?>
<img src="<?php echo get_option('home'); ?>/wp-content/themes/arthemia/images/banners/bttsidebarad1.jpg" alt="Speeches for weddings" width="300px" height="250px" />
<?php } ?>
</div>
That being the case where would I put this - where would I add this code:
<?php if(function_exists('oiopub_banner_zone')) oiopub_banner_zone(1, 'center'); ?>
And how would I specify it to say that this belongs ONLY on the wedding speeches page?
Any help would be fantastic.