Browse Source

Allow empty home page content (fix #110).

pull/117/head
Ned Zimmerman 7 years ago
parent
commit
dd558f8917
No known key found for this signature in database
GPG Key ID: FF56334A013120CA
  1. 5
      partials/content-front-page.php

5
partials/content-front-page.php

@ -37,14 +37,17 @@ if ( get_option( 'pb_front_page_catalog' ) ) {
if ( has_sections( $post->ID ) ) {
the_content();
} else {
$content = get_post_field( 'post_content', $post );
if ( ! empty( $content ) ) {
echo apply_filters(
'the_content',
sprintf(
'[aldine_page_section]%s[/aldine_page_section]',
get_post_field( 'post_content', $post )
$content
)
);
}
}
?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->

Loading…
Cancel
Save