</figure> </li> <?php } ?> </ul> <?php } else { ?> <?php var_dump("abc"); ?> <?php getTemplatePart('block/trademark', null, array('product_cat' => $category->slug)); ?> <ul class="row"> <?php var_dump($category->slug); $paged = get_query_var('paged') ? get_query_var('paged') : 1; var_dump($paged); $arg_category = array('post_status' => 'publish', 'post_type' => 'post', 'category_name' => $category->slug, 'paged' => 5, 'posts_per_page' => 5); query_posts($arg_category); // $category_the_post_query = new WP_Query( $arg_category ); if (have_posts()) { while (have_posts()) { the_post(); // } // } // while ( have_posts() ) : the_post();
function getTourBox() { $metaBoxTempl = 'joyride/src/templates/metabox.templ.php'; // Set data needed in the template $viewData = array('tour_id' => 'tour_title', 'index' => 'New Tour', 'tour' => null); // Output the rendered template echo getTemplatePart($metaBoxTempl, $viewData); }