have_posts() ) { echo '

Dolci

    '; while ( $query_dolci->have_posts() ) { $query_dolci->the_post(); echo '
  • ' . get_the_title() . ''; if ( isset(get_post_custom_values('mfn-post-price')[0])) { echo ''.get_post_custom_values('mfn-post-price')[0].''; } echo '
  • '; } echo '
'; } else { // no posts found } wp_reset_postdata(); ?>