• 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

    (@serkol)

    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.