"Filter: bricks/query/no_results_content"

با استفاده از این فیلتر می‌توانید حلقه Query "محتوای نتیجه ای ندارد" را به صورت برنامه نویسی تغییر دهید.

add_filter( 'bricks/query/no_results_content', function( $content, $settings, $element_id ) {

  // Check if the query element id is the one you want
  if( $element_id !== 'srixvr' ) return $content;

  // Use a bricks section template as the no results content
  $content = do_shortcode('[bricks_template id="3981"]');

  return $content;
}, 10, 3 );