I’m designing my first theme and I have a question regarding the correct way to do a task with posts and pages.
The theme I’m trying to build has 4 pages:
- home (home.php) – contains static text about my site
- articles (index.php) – displays all posts
- photos (page.php) – photo gallery
- contact (page.php) – contact form
The articles page is the one causing me all the issues. I want the articles page to display all my posts, displaying the last 10 posts at any one time but I can’t get it to work.
I’ve created a home page, set the home.php as it’s template and set it as the static front page. I’ve also created an articles page, set the template to default (which I believe is index.php) and set it as the static posts page under the reading section of the admin page.
The 4 page names make up the navigation along the top of my theme and all work as expected, except the articles page. The articles page displays the home.php template design without any content instead of the index.php page posts.
Can anyone tell me how I create a theme which has 3 static pages and a posts page which is not on the home page?
Thanks in advance,
- The topic ‘Newbie theme design question’ is closed to new replies.