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. 17
      partials/content-front-page.php

17
partials/content-front-page.php

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

Loading…
Cancel
Save