Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created February 26, 2014 12:49
Show Gist options
  • Save billerickson/9228933 to your computer and use it in GitHub Desktop.
Save billerickson/9228933 to your computer and use it in GitHub Desktop.
<?php
/**
* Blog Intro
*
*/
function be_blog_intro() {
$content = get_post( get_option( 'page_for_posts' ) )->post_content;
if( $content )
echo '<div class="blog-intro">' . wpautop( $content ) . '</div>';
}
add_action( 'genesis_before_loop', 'be_blog_intro' );
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment