Skip to content

Instantly share code, notes, and snippets.

@guilhermealveslopes
Created April 19, 2017 18:17
Show Gist options
  • Save guilhermealveslopes/19cebfd6cfeaf7a60325ddf5e17da4cc to your computer and use it in GitHub Desktop.
Save guilhermealveslopes/19cebfd6cfeaf7a60325ddf5e17da4cc to your computer and use it in GitHub Desktop.
Checa valor da url
<?php
$meta = get_post_meta( $post->ID, 'meta', true);
if (!empty($meta)) { ?>
Se for nula exibe.
<?php }
else { ?>
Se não for nula exibe.
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment