Created
November 15, 2016 23:27
-
-
Save strategyst/33129237ee2b14c160951fb0711e7cd1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
add_action('wp_head', 'schema_wp_head'); | |
function schema_wp_head(){ | |
$schema = get_post_meta(get_the_ID(), 'schema', true); | |
if(!empty($schema)) { | |
echo $schema; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment