• When I create page templates, and set Front Page Displays to “your latest posts” rather than a static page, page template that is first in alphabetical order displays instead of index.php with latest posts.

    If I delete all page templates from server, then index.php with latest posts displays fine.

    Is there any code I can modify to prevent this and get the index.php to display again while using page templates?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was under the impression that when you had Front Page Displays “your latest posts”, that the Template Hierarchy would use index.php to display those posts.

    Thread Starter dstall

    (@dstall)

    I read WP Codex for Template Heirarchy at link you posted.
    Seems that home.php trumps index.php in heirarchy and I have a home.php template for my “home” page, which is ok as that’s what I want to display for front page anyway.

    But I cannot get recent posts that would display on index.php page to display on another page. I’ve followed instructions here:
    http://wordpress.org/support/topic/231673?replies=7
    but when I select my other page for posts page, home.php overrides it.

    I’ve tried simply copying and pasting index.php code to other page, but that only displays title of the other page as a post instead of recent posts, so undoubtedly other code is needed.

    These instructions don’t work; I get a warning- failed to open stream even though I’ve replaced “blog” with “wordpress” in path, since I have WP installed in “wordpress” directory, not “blog.
    http://www.corvidworks.com/articles/wordpress-content-on-other-pages

    Suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page template overrides default’ is closed to new replies.