context['airo-wp/queryId'] ) ? sanitize_key( (string) $block->context['airo-wp/queryId'] ) : ''; if ( '' === $query_id ) { return; } // The parent Query block's render.php pre-renders the items grid and stashes // the HTML here keyed by queryId. That lets the parent run a single WP_Query // and populate the state registry (for sibling pagination / no-results) // before any child block renders. if ( isset( $GLOBALS['airowp_query_results_html'][ $query_id ] ) ) { echo $GLOBALS['airowp_query_results_html'][ $query_id ]; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- pre-rendered by parent query block's render.php. } } } airowp_render_query_results( $attributes, $content, $block );