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();
?>
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.