blog posts on page

  • Unknown's avatar

    Hello,

    How do I get my blog posts to show up on one page with the style of the title and the image showing?

    I currently have the premium setting and using Baskerville 2.

    Thank You,
    Alicia

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    There are many different ways to display all your WordPress posts on a single page.
    Method 1: Using Display Posts Shortcode Plugin
    The first thing you need to do is install and activate the Display Posts Shortcode plugin.
    Insert this line into the code box.

    [display-posts posts_per_page="1000" order="DESC"]

    Method 2: Using Simple Yearly Archive Plugin
    The first thing you need to do is install and activate the Simple Yearly Archive plugin. Upon activation, you need to go to Settings » Simple Yearly Archive page to configure plugin settings.

    Method 3: Display All WordPress Posts in One Page with Template Code
    First, you will need to create a custom page template and copy the styling from your page.php file.

    <?php
    // the query
    $wpb_all_query = new WP_Query(array('post_type'=>'post', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?>
    
    <?php if ( $wpb_all_query->have_posts() ) : ?>
    
    <ul>
    
        <!-- the loop -->
        <?php while ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>
            <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
        <?php endwhile; ?>
        <!-- end of the loop -->
    
    </ul>
    
        <?php wp_reset_postdata(); ?>
    
    <?php else : ?>
        <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
    <?php endif; ?>

    I hope this helps you.

  • The topic ‘blog posts on page’ is closed to new replies.