Skip to content

Instantly share code, notes, and snippets.

@jonschr jonschr/index.php
Created Oct 16, 2018

Embed
What would you like to do?
<?php
//* Add text above the loop on the main blog page
add_action( 'genesis_archive_title_descriptions', 'add_main_blog_description' );
function add_main_blog_description() {
global $post;
// Bail if this is an archive page (not the blog page)
if ( is_archive() )
return;
// Bail if it's singular
if ( is_singular() )
return;
$description = get_post_meta( 1102, 'blog_description', true );
$description = apply_filters( 'the_content', $description );
if ( $description )
echo $description;
}
genesis();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.