Product result
'; // Start the loop. while ( have_posts() ) { the_post(); if (get_post_type() == 'product') { $_products = $_products + 1; // Include the product content template. get_template_part( 'woocommerce/content', 'product' ); } // End the loop. } if ($_products == 0) { echo '
Product not found
'; } echo '
'; } if (have_posts()) { $_posts = 0; echo '

Article result


'; // Start the loop. while ( have_posts() ) { the_post(); if (get_post_type() != 'product' AND get_post_type() != 'page') { $_posts = $_posts + 1; // Include the product content template. get_template_part( 'content', 'post' ); } // End the loop. } if ($_posts == 0) { echo '
Article not found
'; } echo '
'; } if (have_posts()) { $_pages = 0; echo '

Page result


'; // Start the loop. while ( have_posts() ) { the_post(); if (get_post_type() == 'page') { $_pages = $_pages + 1; // Include the product content template. get_template_part( 'content', 'post' ); } // End the loop. } if ($_pages == 0) { echo '
Page not found
'; } echo '
'; } } else { ?>
max_num_pages; get_template_part( 'pagination' ); // if ( get_post_type() == 'testimonials' AND is_user_logged_in() ) { // get_template_part( 'testimonial_form'); // } ?>