Created
April 11, 2017 17:31
-
-
Save braginteractive/2f4c7127a81aa485284801b4d2753ee8 to your computer and use it in GitHub Desktop.
Display sample meta boxes on page
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 | |
$text = get_post_meta( get_the_ID(), '_yourprefix_text', true ); | |
$email = get_post_meta( get_the_ID(), '_yourprefix_email', true ); | |
$url = get_post_meta( get_the_ID(), '_yourprefix_url', true ); | |
echo esc_html( $text ); | |
echo is_email( $email ); | |
echo esc_url( $url ); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment