wordpress

WordPress Recent Posts from specific category

here cat=1 is our category ID number and showposts=10 is our recent posts from specific category count. When you add this code to your sidebar.php file, you have to check your specific category ID from you admin panel, manage, categories. global $post; $recent = new WP_Query(“cat=4&showposts=10”); while ($recent->have_posts()) { $recent->the_post(); art_post_wrapper( array( ‘id’ => art_get_post_id(),… Continue reading WordPress Recent Posts from specific category