/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $temp = $wp_query; $wp_query= null; $wp_query = new WP_Query(); $wp_query->query('category_name=blog&showposts=1'.'&paged='.$paged); while ($wp_query->have_posts()) : $wp_query->the_post(); ?> <!--THIS IS THE POST CONTENT--> <?php endwhile; $wp_query = null; $wp_query = $temp; ?>