Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress

WordPress

Note : Sorry for my bad english. its not my native language and sorry for the stupid question

let me get this straight i want to make a website where i will have a galley page and a news page and few static pages. is there any way i could make my new posts to go on a particular page. i mean i want to update theses two pages on regular basis ??

2 Answers

Austin Whipple
Austin Whipple
29,725 Points

Definitely! WordPress can set a specific page as a listing of news posts (or use the homepage). Check out this Codex page for more information.

Thank You very much for your reply :) but what i want to do -s Every time I post I would like each post to go under a different pages tab, for example if i post about an Event or news I would like it to appear when I click on the Events page or news on the top.

But all the posts go to home and none are under any page. How can I get to post under each page????

Can i use categories as menus for that ???

Austin Whipple
Austin Whipple
29,725 Points

Pranay,

You can do that a few ways. First and easiest would be to use the default WordPress category archive pages. Those are available at URLs like www.example.com/category/your-category-name/. These pages automatically collect posts added to a specific category. If you'd like to change how these pages look, you can read more about category archive templates on the Codex.

Second, you could, in theory, add in specific loops in different locations using customized queries. You can even use a WP query generator. For what it's worth, this is probably a bad idea because, unless you're doing very different things than what WordPress provides by default, you'll be wasting effort on duplicated functionality.

Lastly, if the content and layout for each is different enough from each other, you could consider setting up custom post types and then use custom post type archive pages to display them all in a single page.