I am trying to figure out why this page is showing content when the criteria isn´t being met.
I am using this code, so if there is a website in the custom meta box if will display the DIV with the a href in it:
<?php $infos = get_post_custom_values('_url'); ?>
<?php the_content(); ?></br class="clear">
<?php if ( $infos ) { ?>
<div class="color-buttons color-button-blue website"><a href="http://<?php echo $infos[0]; ?>" target="_blank">Website →</a></div>
<?php } // endif ?>
If you look here: hhttp://globalicn.com/preview/regions/europe/#southern-europe the bottom Portugal link has no website, but the website link is there and shows http:///
If I delete the tag associated with this post, then the website link doesn´t display, which is correct. So when I add the tag Souther-Europe it somehow still adds the link.
Full code: http://pastebin.com/8taYL6Da