1

I'm building a WordPress theme. I need two type of pages, one is home page which will display on www.example.com. I also need a list of all my posts on www.example.com/blog/, but I need both in one WordPress theme.

Is there the right way to use home.php or front-page.php?

If no then please suggest me the right way to solve my problem. If yes then please suggest me how can I see all my blog post list on www.example.com/blog/

2

Use the WordPress Reading settings for your posts page named blog and create a static front-page.php file for your front page in your theme.

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.