The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress post to right place on theme.. Reply To: WordPress post to right place on theme..


I’m not 100% of what you’re asking, but the you can use the WP_Query class as suggested by Ilan for fetching specific posts by tag, category, author, date, etc.

Also, the index.php markup is a fallback for the theme to go to if specific files are missing. You should look into the WP Hierarchy. This nifty tool will help you understand how and which files WP looks for depending on the part of the site you’re on.

Last thing, having different page templates will help you organize your theme and are really helpful for child-themes.