Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm new to the Wordpress world. I've read the template hierarchy document and read online, but, I wanted to get feedback from here on what the best way to do this would be.

What I'm trying to do is create a page that simply lists all of the posts that my site has. I am creating my own theme and as a result the home page (front-page.php) is highly tweaked. I do list recent posts, but, only their titles. On my home page I would like to add a link to "See all blog posts". I'm comfortable with the PHP code; I know how to display posts. I'm just not sure what the best way to get a page that lists them all aside from the homepage is.

I'm sure this is very easy to accomplish, I'm just still working through the Wordpress structure so your advice is appreciated!

share|improve this question

2 Answers 2

up vote 1 down vote accepted

You have to create a page template with Loop inside. Then create a page "All My Posts" and assign the template you've created to it in "Page Attributes" section of "Edit Page" admin page.

You can link to this page from the Front Page using get_page function. Function Reference/get page.

share|improve this answer
    
Your post paired with the documentation at codex.wordpress.org/Creating_a_Static_Front_Page did the trick. Thanks! –  Ek0nomik Dec 14 '12 at 18:57

You can follow the link for a detail tutorial on this.

After this, you just need to create a page, and for the specific page, you will need to choose the blog template (by this tutorial: "Blog Posts" template) and then publish. Happy coding. :)

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.