Created
April 19, 2017 18:17
-
-
Save guilhermealveslopes/19cebfd6cfeaf7a60325ddf5e17da4cc to your computer and use it in GitHub Desktop.
Checa valor da url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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