Skip to content

Instantly share code, notes, and snippets.

@GermanKiwi
Created September 14, 2014 00:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save GermanKiwi/3ca2dd08a35d615e138c to your computer and use it in GitHub Desktop.
<?php
/**
* Blog Intro
*
*/
function gk_blog_intro() {
$blogpost = get_post( get_option( 'page_for_posts' ) );
$title = $blogpost->post_title;
$content = $blogpost->post_content;
if( $blogpost )
echo '<div class="blog-intro"><div class="archive-description"><h1 class="archive-title">' . $title . '</h1></div>' . wpautop( $content ) . '</div>';
}
add_action( 'genesis_before_loop', 'gk_blog_intro' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment