how to make a list of all posts
-
Hello,
I would like to make a list of all the posts in my blog on a separate page, not in the sidebar. i’ve already figured out how to show the most recent posts in the sidebar, but i also want to include a link for the user to see a list of ALL posts.
how would i go about doing this?
(sorry if this is fairly easy, i’m brand new to wordpress)
-d
-
Assuming a plugin such as this will not work for you:
http://www.dagondesign.com/articles/sitemap-generator-plugin-for-wordpress/You could create a Page and a page template then put code in that page template to list the posts.
Resources:
Stepping into Templates
Template Hierarchy
The_Loop
The_Loop_in_ActionWouldn’t something like – http://codex.ww.wp.xz.cn/Template_Tags/wp_list_pages – work?
No, that template tag never lists any posts, only Pages.
Most simplest way (generates a list of posts links by title, newest to oldest):
<?php wp_get_archives('type=postbypost'); ?>thanks, i just changed the page template to include the wp_get_archives tag. i doubt i’ll have to create another page and if so, i guess i’ll deal with it when the time comes. thanks!
just reading through this, and if you’d like to have a page that lists posts by category, or alphabetically, or somehow nicely organized – you can also download a plugin to display a site-map – Sitemap Plugin
Thanks, but the sitemap plugin wont work for me – i don’t want categories listed, just a giant list from newest to oldest of all posts.
one problem with the wp_get_archives tag on the page template – i dont understand why it is including each post in a bulleted list…. i’ve gone thru the stylesheet and basically changed everything i could find to list-style: none, but nothing changes it! this is a minor aesthetic blemish (otherwise, its working perfectly) but its bugging me. any ideas?
The topic ‘how to make a list of all posts’ is closed to new replies.