Skip to content

Commit

Permalink
Cater for Gutenberg not activated #34
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbingwide committed Aug 7, 2022
1 parent a928b5e commit 156b957
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion includes/post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ function sb_render_block_core_post_template( $attributes, $content, $block ) {
$attributes['limit' ] = $limit;
$html .= sb_render_block_core_post_template_main_query( $attributes, $content, $block );
} else {
$html .= gutenberg_render_block_core_post_template($attributes, $content, $block);
if ( function_exists('gutenberg_render_block_core_post_template')) {
$html .= gutenberg_render_block_core_post_template($attributes, $content, $block);
} else {
$html .= render_block_core_post_template($attributes, $content, $block);
}
}
return $html;
}
Expand Down

0 comments on commit 156b957

Please sign in to comment.