Support » Themes and Templates » index.php as homepage and home.php as posts page

  • Hy..!

    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 ))

    ^DuKi

Viewing 3 replies - 1 through 3 (of 3 total)
  • esmi

    (@esmi)

    Forum Moderator

    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.

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

    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.
    than,
    You have to code your main loop on index.php or home.php.. Which will display your posts.
    and,
    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..

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘index.php as homepage and home.php as posts page’ is closed to new replies.