Forums

[resolved] Using static homepage in 2.7 - How do you display your blog?! (4 posts)

  1. Roy_Mi6
    Member
    Posted 3 years ago #

    Hi,

    Just started using wordpress and having a little bit of difficulty using the static homepage option and then getting my site to display a full post listing page.

    Essentialy my website takes the format:

    Home - News - About Me - Contact

    I would like Home, About Me and Contact to be static pages (easily done in WP2.7) and then have News display what would be considered to be the standard homepage of a wordpress blog.

    What I throught I would be able to do to acheive this is create another template that uses the same code from the index page and have it list all the posts. However, as pages and posts are the same thing the get_posts() method used in index.php returns a single page, the news page, when used on a page template.

    I'm lead to understand that this is because of the querystring value setting the page_id.

    Is there anyway I can reset the get_posts()'s method to return the latest news posts?

  2. bill127300
    Member
    Posted 3 years ago #

    You are making this much too hard on yourself.

    Go to Settings > Reading.

    You will see the option for making your homepage a static page and blog page another page. Just Click the button and use the dropdown to set which page shows what.

  3. Xephius
    Member
    Posted 3 years ago #

    Thanks,

    That was exactly what I was looking for. I figured there was a way, I just didn't know the "right" way to search for it..

    -X

  4. Roy_Mi6
    Member
    Posted 3 years ago #

    Ooooooooooooooh!

    I wondered what that setting was for when I originaly set the homepage! Like I said i'm really just getting started with this.

    That works perfectly Bill. Cheers for that.

    For anyone else that finds this it's maybe worth mentioning that by setting a static page means that for that page that you select as "Posts Page" this will use the index.php in your theme and will thus will override any of the content you've entered on the static page.

    Cheers again guys!

Topic Closed

This topic has been closed to new replies.

About this Topic