Skip to content

Commit dd1dfe5

Browse files
authored
fix: 🛠 Sets styled 'related terms' to appear on single posts only. Resolves #67 (#73)
1 parent 469c055 commit dd1dfe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Template/Blocks_Render.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public function adjust_featured_image_block( $block_content = '', $block = [] )
5050
}
5151

5252
public function adjust_post_terms_block( $block_content = '', $block = [] ) {
53-
if ( ! is_singular() || ! ( isset( $block['blockName'] ) && 'core/post-terms' === $block['blockName'] ) ) {
53+
if ( ! is_single() || ! ( isset( $block['blockName'] ) && 'core/post-terms' === $block['blockName'] ) ) {
5454
return $block_content;
5555
}
5656

0 commit comments

Comments
 (0)