0

So I have a front-page.php that is shown when a visitor visits my site.

I also want to create a blog page using my index.php file but I'm not sure what I need to do?

Do I just create a new page template for my blog page by copying and pasting my index.php code into my newly created page template file?

I haven't touched any of my reading setting either.

Does that make any sense?

Thanks

  • Index.php should be silenced unless you have good reason to use it. For your instance use a page template. – Nathan Powell Apr 6 '16 at 5:49
  • I think? What is your index? – Nathan Powell Apr 6 '16 at 5:50
0

You can create a blog page from index.php If you have knowledge on WordPress Template hierarchy and WordPress coding standard you can easily manipulate blog page on your server. Moreover front-page.php will be your home page.

Resources

Page Template Hierarchy

Developer Resources:

0

Not sure if this is the right way, but I used my front-page.php as my front page and then used my index.php as a page template when I created my blog page.

  • You set Front Page and Blog Page under Settings -> Reading which will take their respective templates. – Howdy_McGee Apr 6 '16 at 20:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.