• Resolved Roy_Mi6

    (@roy_mi6)


    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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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

    ?

    Thread Starter Roy_Mi6

    (@roy_mi6)

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using static homepage in 2.7 – How do you display your blog?!’ is closed to new replies.