WPGet.blogspot.com

Show All Your WordPress Posts on One Web page

Do you wish to show all of your WordPress posts on one web page? Lately one in all our readers needed to create an archives web page and present all WordPress posts on a single web page. On this article, we'll present you tips on how to show all of your WordPress posts on one web page with out pagination.

Show all WordPress posts on one page

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

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

Many web site homeowners nevertheless want to create custom archives page for his or her web site. The archives web page often spotlight their popular posts, show a date based mostly compact archive, checklist classes, or show tag clouds, and extra. Check out Wpget’s archives page for example.

Some blogs want to easily show an inventory of all their WordPress put up titles on one web page.

Video Tutorial

Subscribe to Wpget

When you don’t like video tutorials or wish to transfer at your personal tempo, then proceed studying the directions under.

Displaying All WordPress Posts on One Web page

There are numerous other ways to show all of your WordPress posts on a single web page. You may show posts on a web page with a shortcode, you possibly can show posts on a web page utilizing a plugin, and lastly you possibly can show all posts on a web page utilizing a customized template and loop.

We'll cowl all three strategies beginning with probably the most newbie pleasant one.

Technique 1: Utilizing Show Posts Shortcode Plugin

Very first thing you might want to do is set up and activate the Display Posts Shortcode plugin. For extra particulars, see our step-by-step information on how to install a WordPress plugin.

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

Go forward and create a brand new web page and name it Archives or some other title. After that, you might want to paste the next shortcode in your web page.

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

This shortcode will merely show an inventory of all of your put up titles in a chronological order. It's set to show most 1000 posts per web page.

When you've got greater than a thousand posts, then you possibly can change that. It's also possible to change the put up order to ASC which can show posts in a reverse chronological order (older posts first).

List all posts in WordPress

Whilst you may use the show posts shortcode to indicate excerpts, thumbnails, and different associated info, we don’t advocate doing that. When you're itemizing all of your posts on a single web page, this web page might be lengthy, and also you wish to make certain it’s easy and quick. Simply displaying put up titles is adequate for archives web page of this fashion.

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 page.

Technique 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 may repair that by displaying an inventory 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 you might want to do is set up and activate the Simple Yearly Archive plugin.

Upon activation, you might want to go to Settings » Easy Yearly Archive web page to configure plugin settings.

Simple yearly archive settings

The plugin lets you show checklist of posts in a wide range of methods. You may present all of them below hyperlinks to yearly archives, or you possibly can present them below collapsible years.

If you wish to show them below collapsible years, then you might want to add <div> and </div> subsequent to the choice ‘Earlier than / After (12 months headline)’.

Remainder of the plugin choices are fairly self-explanatory. You may set them up in keeping with your wants.

Don’t neglect to click on on the save modifications 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.

Collapsible yearly archives showing all posts in WordPress

The plugin gives a spread of parameters that can be utilized with the shortcode. You may have a look at the parameters on plugin’s documentation page.

Technique three: 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 it's possible you'll wish to discover ways to do it with web page templates code.

First you will want to create a custom page template and replica the styling out of your web page.php file.

After that, you'll use a loop under to show all posts in a single web page.

<?php 
// the question
$wpb_all_query = new WP_Query(array('post_type'=>'put up', 'post_status'=>'publish', 'posts_per_page'=>-1)); ?>

<?php if ( $wpb_all_query->have_posts() ) : ?>

<ul>

	<!-- the loop -->
	<?php whereas ( $wpb_all_query->have_posts() ) : $wpb_all_query->the_post(); ?>
		<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
	<?php endwhile; ?>
	<!-- finish of the loop -->

</ul>

	<?php wp_reset_postdata(); ?>

<?php else : ?>
	<p><?php _e( 'Sorry, no posts matched your standards.' ); ?></p>
<?php endif; ?>

If the above code directions doesn't make sense, the we advocate 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 wish to see our information on 8 proven methods to promote old posts in WordPress.

When you appreciated this text, then please subscribe to our YouTube Channel for WordPress video tutorials. It's also possible to discover us on Twitter and Facebook.

Tutorials