Hi
I have a true/false checkbox which is checked by default. However, it doesn’t work as expected unless the post is ‘updated’. Here’s my code in the the tempalte file:
<?php
$smartBanner = get_post_meta($post->ID, 'smart_banner', true);
if ($smartBanner) { ?>
BANNER
<?php } else { ?>
NO BANNER
<?php } ?>
How do i fix this?
Thanks