Created
August 28, 2013 00:39
-
-
Save anonymous/6360829 to your computer and use it in GitHub Desktop.
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
add_action('genesis_post_content', 'title'); | |
function title() { | |
if ( is_single() && genesis_get_custom_field('title') ) | |
echo '<hr /><div id="postition_title">Title: '. genesis_get_custom_field('title') .'</div>'; | |
} | |
add_action('genesis_post_content', 'phone'); | |
function phone() { | |
if ( is_single() && genesis_get_custom_field('phone') ) | |
echo '<div id="phone">Phone Number: '. '<a href="tel:' .genesis_get_custom_field('phone') . '">' . genesis_get_custom_field('phone') .'</a></div>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment