Skip to content

Instantly share code, notes, and snippets.

Created August 28, 2013 00:39
Show Gist options
  • Select an option

  • Save anonymous/6360829 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/6360829 to your computer and use it in GitHub Desktop.

Revisions

  1. @invalid-email-address Anonymous created this gist Aug 28, 2013.
    11 changes: 11 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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>';
    }