*/ ?> <section class="section home alt3"> <div class="wrapper"> <ul class="site-stats"> <li> <span class="total"><?php echo pp_get_category_post_count('free-members'); ?> </span> Free tutorials </li> <li> <span class="total"><?php echo pp_get_category_post_count('subscriber-only'); ?> </span> Premium tutorials </li> <li> <span class="total"><?php echo pp_get_download_count(); ?> </span> Products </li> <li> <span class="total"><?php echo pp_get_post_count(); ?> </span> Blog Posts
<?php /** * Template Name: Learn */ get_header(); $tutorials_total = pp_get_category_post_count('free-members') + pp_get_category_post_count('subscriber-only'); ?> <?php pp_page_header('Learn Plugin Development', '<h2>' . $tutorials_total . ' tutorials and <a href="' . get_post_type_archive_link('series') . '">' . pp_get_series_count() . ' series</a>, ready when you are.</h2>'); ?> <?php $paged = get_query_var('paged') ? get_query_var('paged') : 1; $args = array('posts_per_page' => 10, 'paged' => $paged, 'category_name' => 'tutorials'); $temp = $wp_query; // assign original query to temp variable for later use $wp_query = null; $wp_query = new WP_Query($args); if (have_posts()) { ?> <div class="columns-main-side columns"> <div class="wrapper"> <div class="primary col content-area"> <?php while ($wp_query->have_posts()) { $wp_query->the_post(); ?>