Support

Account

Home Forums General Issues If get_fields is empty not working Reply To: If get_fields is empty not working

  • Oh yeah sorry this is the real query

    <?php
    
    			if($query_results->have_posts()):
    				while ( $query_results->have_posts() ) : $query_results->the_post();
    					$single_params = array();
    					$single_params['title_tag'] = $title_tag;
    					$single_params['show_single_layout'] = $show_single_layout;
    					$single_params['show_id'] = get_the_ID();
    					$single_params['article_classes'] = $this_object->getArticleClasses( $params );
    					$single_params['show_category'] = $show_category;
    					$single_params['show_date_range'] = $show_date_range;
    					$single_params['image_proportions'] = $image_proportions;
    
    					echo musea_elated_execute_shortcode('eltdf_show_single', $single_params);
    				endwhile;
    			else:
    				esc_html_e( 'Sorry, no posts matched your criteria.', 'musea-shows' );
    			endif;
    		
    			wp_reset_postdata();
    		?>