WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] show all posts on another page (/blog) (4 posts)

  1. mikehealy
    Member
    Posted 7 years ago #

    Hi,
    I'm trying to use wordpress for the first time and being driven nuts by this issue. I really need to get it sorted today.

    I want the index page to be static, i.e not show blog posts. I have done this successfully by editing my themes index.php file.

    My problem is that I need another Page (blog) created as a WP Page to fulfil the function that index used to -- show the recent posts from ALL categories.

    I've created a new template file (blog.php) for this Page, but using The Loop only shows the content of the blog WP Page. I need to modify the way have_posts() works so that it DOESN'T simply get the content of this page, but instead does what index used to.

    I know WP derives category/page/post info from the URL to decide what content to serve. How can I override this behaviour to do what I need?

    Solution much appreciated.

  2. Chris_K
    Member
    Posted 7 years ago #

    Maybe this article will help? Creating_a_Static_Front_Page

  3. mikehealy
    Member
    Posted 7 years ago #

    Thanks, that did help. I don't have what I wanted 100%, but 90% is close enough.
    This must be a very common requirement though, even wordpress.org does what I want (non blog index, then a separate blog page)

  4. moshu
    Member
    Posted 7 years ago #

    even wordpress.org does what I want (non blog index, then a separate blog

    Misconception and not understanding how this site is built. This is NOT a blogging tool installed in the root and wanting to show blog entires somewhere else - which is your case.

Topic Closed

This topic has been closed to new replies.

About this Topic