Title: Adding recent posts to a page
Last modified: August 22, 2016

---

# Adding recent posts to a page

 *  [Serkol](https://wordpress.org/support/users/serkol/)
 * (@serkol)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-recent-posts-to-a-page/)
 * Hi Rohit and everyone else,
 * I have recently created a new PHP page within the Bose folder in an attempt to
   make a separate page with just the posts/blogs showing.
 * The template is working/showing up/selectable for pages,
 * however I don’t know what code to implement in the PHP to show the recent posts
   or any posts in the page/template.
 * I was getting close by using the home.php code… and also grid3
 * Can you help me out with how to just have a single page dedicated to showing 
   posts?
 * Similar to how it looks on the home page with ‘recent posts’
 * Thanks very much for the theme! If I had a spare dollar I would upgrade haha.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Serkol](https://wordpress.org/support/users/serkol/)
 * (@serkol)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/adding-recent-posts-to-a-page/#post-5564602)
 * Here’s what I have so far… seems close when I load the page.
 *     ```
       <?php
       /**
        * The template for displaying recent posts
        * Template Name: recent
        * @package Bose
        */
   
       get_header(); ?>
       	<div class="header-title col-md-12">
       	<span><?php the_title(); ?></span>
       	</div>
       		<div id="primary-mono" class="content-area col-md-12">
       		<main id="main" class="site-main" role="main">
   
       			<?php $count = 0; ?>
       			<?php if ( have_posts() ) : ?>
       			<?php /* Start the Loop */ ?>
       			<?php while ( have_posts() ) : the_post(); ?>
   
       				<?php
       				do_action('bose-layout');
       				$count++;
       				?>
   
       			<?php endwhile; ?>
       			<?php endif; ?>
   
       		</main>
       		</div>
   
       <?php get_footer(); ?>
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Adding recent posts to a page’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/bose/1.2.0.3/screenshot.png)
 * Bose
 * [Support Threads](https://wordpress.org/support/theme/bose/)
 * [Active Topics](https://wordpress.org/support/theme/bose/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/bose/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/bose/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Serkol](https://wordpress.org/support/users/serkol/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/adding-recent-posts-to-a-page/#post-5564602)
 * Status: not resolved