How to move the posts index page in Wordpress to another file rather than index.php?
The index page in Wordpress show all the posts (without comments). I would like to make the index.php a static page (not a blog), I already done that. But I 开发者_高级运维don't know how to move the index of posts to other page (say blog.php).
Any suggestions?
Make two new pages: 'Blog' and 'Home'.
Under Reading settings: set 'Home' as static page and 'Blog' as 'posts page'.
This makes 'Blog' utilize index.php. Then you have to setup a front-page.php and copy whatever's in your page.php as a base. Now you can edit your home page as a regular page or edit front-page.php to make changes to your home page.
Dashboard/Settings/Reading and possibly make a page template, too, Page Templates « WordPress Codex, woith a loop.
精彩评论