context['postId'] ) ? absint( $block->context['postId'] ) : get_the_ID(); $chrnx_limit = isset( $attributes['limit'] ) ? min( 12, max( 1, absint( $attributes['limit'] ) ) ) : 3; $chrnx_ids = chrnx_get_related_post_ids( $chrnx_post_id, $chrnx_limit ); if ( empty( $chrnx_ids ) ) { return; } $chrnx_heading = chrnx_get_heading_level( $attributes['headingLevel'] ?? 2, 2 ); ?>
'chrnx-related-posts' ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?> aria-labelledby="chrnx-related-posts-title-"> id="chrnx-related-posts-title-">>