Created
November 9, 2015 11:38
-
-
Save caralgar/6a28257ec3c6f6266f38 to your computer and use it in GitHub Desktop.
Get post meta for custom body id
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 | |
$body_id = get_post_meta($post->ID,'body_id'); | |
?> | |
<body <?php body_class() ?> <?php if (!empty($body_id[0])) echo 'id="'.$body_id[0].'"' ?>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment