Skip to content

Instantly share code, notes, and snippets.

@braddalton
Forked from anonymous/gist:6360829
Created August 28, 2013 00:53
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save braddalton/6360909 to your computer and use it in GitHub Desktop.
Save braddalton/6360909 to your computer and use it in GitHub Desktop.
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