Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created February 26, 2014 12:49
  • Star 8 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
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