Is it possible to check if a certain type of advert exists?
Im currently using this to display ads
<div class="side-rect-ad">
<?php advman_ad('Rectangle Test'); ?>
<p class="small">Advertisment</p>
</div>
If there are no ads named rectangle test i'd like to be able to hide the full side-rect-ad div.
If this was a custom field i could do something like this
<?php $image=get_post_meta($post->ID, 'post-image', true);
<?php if ( $image ) { ?>
<!-- layout with image -->
<?php } else { ?>
<!-- layout without image -->
<?php endif; ?>