index.php as homepage and home.php as posts page (4 posts)

  1. DuKi
    Posted 1 year ago #


    1.Is it possible to do so --> To make index.php ase usual homepage but display posts on home.php.. ||

    2. Make index.php ase usual homepage but display posts on any page template. ex: page-blog.php ...

    I'm familiar with WP Temlpate Hierarchy.. But need your help. Second variant will be more helpfull. Thanks ))


  2. esmi
    Forum Moderator
    Posted 1 year ago #

    Depending upon the way in which your server is configured, this won't be possible. What you might be able to do is reverse this - use home.php as your front page with index.php as the posts page.

  3. DuKi
    Posted 1 year ago #

    Is it inescapable? I want to display normal(not custom) posts on Page Template, not on index.php or home.php

  4. DuKi
    Posted 1 year ago #

    Okey, I have found an answer myself..

    If someone looks for issue like me, read:

    You have to create front-page.php and code there anything you want to display on front page.
    You have to code your main loop on index.php or home.php.. Which will display your posts.
    Lastly You have to change in backend(admin-panel) settings>reading> and configure there which page will display Your websites Front Page and which one Posting page..

    Thats all..

Topic Closed

This topic has been closed to new replies.

About this Topic