Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

In wordpress you have a few 'default' archive URL's. Like for example: http://www.mydomain.com/2011/ generates an overview of the posts of (only) that year.

If you have an category blogs the url http://www.mydomain.com/blogs/ generates an overview of all the posts within that category. (Spread over multiple pages)

Now is my question is there any link which generates an overview of all posts (spread over multiple pages) starting with the newest first and going back in time?

So not like the 2011 url, which only fetches from this year, but go's further back in time when applicable.

My current permalink structure is:

/%category%/%postname%/

Thanks.

share|improve this question

migrated from stackoverflow.com Oct 2 '11 at 14:00

3 Answers

You're basically asking for the Blog Posts Index, which queries all blog posts, ever.

If your site is configured to display the Blog Posts Index on the front page, then the URL you're after is simply home_url().

If your site is configured to display a static Page on the front page, and to display blog Posts on static Page "Foobar", then the URL you're after is home_url( '/foobar' ) (or, more generically: home_url( '/' . get_option( 'page_for_posts' ) )).

The Blog Posts Index is a paginated archive index, so to get to the pages for older posts, simply append /page/#/, e.g. example.com/page/2/ or example.com/blog/page/2/.

share|improve this answer

http://myblog.com/?post_type=post for a list of all posts, probably sorted in descending order by date.

Specifying post_type in the query vars signals to WP_Query that you're looking for an archive page, so it will go through your template hierarchy looking first for archive-{post_type}.php and if that doesn't exists, archive.php in order to display the posts.

Do note that the number of posts displayed will still be guided by posts_per_page, which if not explicitly set, would use the setting in your Admin control panel under Settings > Reading > 'Blog pages show at most' # posts

share|improve this answer

No its not possible with out some coding. You'll have to create a page (similar to archive.php) and write code that will fetch all the posts.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.