Friday, November 27, 2020
Home Blogging How to Display All Your WordPress Posts on One Page

How to Display All Your WordPress Posts on One Page

Do you need to show all of your WordPress posts on one web page? Just lately one among our readers wished to create an archives web page and present all WordPress posts on a single web page. On this article, we are going to present you tips on how to show all of your WordPress posts on one web page with out pagination.

Why and When to Show All Posts on One Web page?

WordPress comes with inbuilt archive pages for every class, tags, creator, and date.

Many website homeowners nonetheless want to create customized archives web page for his or her website. The archives web page often spotlight their widespread posts, show a date based mostly compact archive, listing classes, or show tag clouds, and extra. Check out WPBeginner’s archives web page for instance.

Some blogs want to easily show a listing of all their WordPress publish titles on one web page.

Displaying All WordPress Posts on One Web page

There are a lot of alternative ways to show all of your WordPress posts on a single web page. You’ll be able to show posts on a web page with a shortcode, you may show posts on a web page utilizing a plugin, and lastly you may show all posts on a web page utilizing a customized template and loop.

We are going to cowl all three strategies beginning with essentially the most newbie pleasant one.

Methodology 1: Utilizing Show Posts Shortcode Plugin

Very first thing it’s worthwhile to do is set up and activate the Show Posts Shortcode plugin. For extra particulars, see our step-by-step information on tips on how to set up a WordPress plugin.

This plugin works out of the field, and there usually are not settings so that you can configure.

Go forward and create a brand new web page and name it Archives or another title. After that, it’s worthwhile to paste the next shortcode in your web page.

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

This shortcode will merely show a listing of all of your publish titles in a chronological order. It’s set to show most 1000 posts per web page.

In case you have greater than a thousand posts, then you may change that. You may as well change the publish order to ASC which is able to show posts in a reverse chronological order (older posts first).

Whilst you might use the show posts shortcode to indicate excerpts, thumbnails, and different associated info, we don’t suggest doing that. When you find yourself itemizing all of your posts on a single web page, this web page might be lengthy, and also you need to be sure it’s easy and quick. Simply displaying publish titles is adequate for archives web page of this type.

If you wish to show posts on web page based mostly on class or different parameters, you are able to do so by following the detailed utilization directions on their documentation web page.

You May Also Like : How to Add Free SSL in WordPress with Let’s Encrypt

Methodology 2: Utilizing Easy Yearly Archive Plugin

Displaying all of your WordPress posts on a single web page could make it too lengthy to scroll. You’ll be able to repair that by displaying a listing of every 12 months. Customers can then click on on a 12 months to increase it and see the posts revealed that 12 months.

Very first thing it’s worthwhile to do is set up and activate the Easy Yearly Archive plugin.

Upon activation, it’s worthwhile to go to Settings » Easy Yearly Archive web page to configure plugin settings.

The plugin permits you to show listing of posts in a wide range of methods. You’ll be able to present all of them underneath hyperlinks to yearly archives, or you may present them underneath collapsible years.

If you wish to show them underneath collapsible years, then it’s worthwhile to add <div> and </div> subsequent to the choiceEarlier than / After (Yr headline)’.

Remainder of the plugin choices are fairly self-explanatory. You’ll be able to set them up in response to your wants.

Don’t overlook to click on on the save adjustments button to retailer your settings.

Now to show all of your posts on a web page, you simply want so as to add [SimpleYearlyArchive] shortcode to the web page of your alternative.

The plugin offers a variety of parameters that can be utilized with the shortcode. You’ll be able to take a look at the parameters on plugin’s documentation web page.

Methodology 3: Show All WordPress Posts in One Web page with Template Code

Whereas utilizing a plugin to show all posts in a single web page is the best approach, a few of chances are you’ll need to learn to do it with web page templates code.

First you have to to create a customized web page template and duplicate the styling out of your web page.php file.

After that, you’ll use a loop under to show all-post in a single web page.

// 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() ) : ?>
    <!-- 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 -->
    <?php wp_reset_postdata(); ?>
<?php else : ?>
    <p><?php _e( 'Sorry, no posts matched your criteria.' ); ?></p>
<?php endif; ?>

If the above code directions doesn’t make sense, the we suggest that you simply use methodology 1.

We hope this text helped you show all of your WordPress posts on one web page. You may additionally need to see our information on Eight confirmed strategies to advertise outdated posts in WordPress.

If you liked this article, make sure to hit the bell for getting our latest updates and share this article with your friends in every social media platforms.



Please enter your comment!
Please enter your name here

- Advertisment -

Most Popular

Post Matric & Pre-Matric Scholarship Scheme – How to Apply

Scholarship is an effective way to finance your training. If your child is vivid and anticipated to have a promising profession forward then you...

How to Earn Money from Google Online Jobs

  I can swear… Google on-line jobs comes on the highest of my listing for real on-line jobs. I've been getting cash from Google from the final...

List of Different MBA Courses in India

Master of Business Administration, generally known as MBA, is one of probably the most coveted and prestigious academic {qualifications} in India. Earlier, most MBA...

Everything You Should Know About Salary Slip / Pay Slip

Salary slip, also referred to as pay slip, is given to each worker of corporations small and enormous. Some employers challenge the pay slip...

Recent Comments