Reputation: 309
I have both index.php and home.php template under themes
website/theme/mytheme/
-home.php
-index.php
-header.php
-footer.php
When home.php is present,my homepage will be home.php
1)My home.php is actually my home page, which includes a large picture and some description of my website.
2)index.php will be normal blog template, which includes all posts in the blog,header,footer,sidebar...
May i know how to make both index and home available?
-In my home page, when i click a link with url like"www.website.com/blog", it will prompt to index.php which show the blog(normal wordpress main page).
Upvotes: 0
Views: 96
Reputation: 13
In wordpress normally home.php is for blogpage and and index.php is for the main front page. Nowdays frontpage.php displays main page when website loads
you can change the frontpage display using setting->reading and front page to your index.php and post page as blog page or in your case home.php
Upvotes: 0