Wordpress Display All Posts Wordpress Display All Posts wordpress wordpress

Wordpress Display All Posts


If you want it for all categories/tags/fron_page, there is very quick sollution - go to /wp-admin/options-reading.php and set the number of posts to -1 - it is not normally possible as the input got min=1, but you can change it easily with e.g. browser developer console.

If you want just one page with all posts, you can simply create template or shortcode, with http://codex.wordpress.org/Template_Tags/get_posts and numberposts set to -1 and show what you need, e.g.

<?php$args = array( 'numberposts' => -1); $posts= get_posts( $args );if ($posts) {    foreach ( $posts as $post ) {        setup_postdata($post);        the_title();        the_excerpt();    }}?>


For others who might be Googling this... If you have replaced the front page of your site with a static page, but still want your list of posts to appear under a separate link, you need to:

  1. Create an empty page (and specify any URL/slug you like)
  2. Under Settings > Reading, choose this new page as your "Posts page"

Now when you click the link to this page in your menu, it should list all your recent posts (no messing with code required).

(Disclaimer: I posted this same answer to a similar question here.)


This all depends on your theme, you'd need a blog.php, page-blog.php, archive.php (you get the idea).

It will be a php page that's got a basic WP_Query() with no definition of category or anything.

You'd be able to define this either in:

  1. Settings > Reading --- Blog Page
  2. Theme Options --- (something like) Blog Categories [pick all]
  3. define it for all posts in the PHP file itself

hopefully this helps, sorry there's not a "do that 'here'" answer for you :/