Created
March 9, 2012 19:00
-
-
Save FernE97/2008075 to your computer and use it in GitHub Desktop.
PHP: WordPress Custom Field
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 | |
// Custom fields | |
if ( get_post_meta( $post->ID, 'custom_01', true ) ) { | |
echo get_post_meta( $post->ID, 'custom_01', true ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment