Support » Plugins and Hacks » PHP code to display posts on another page

  • I am wondering what the PHP code would be to display the last 4 blog posts on another page.

    I have an existing homepage which links to the WP blog, but I want the last 4 posts to be displayed on the side of the homepage, just can’t figure out the code to make this happen.

    Thanks so much!

Viewing 1 replies (of 1 total)
  • You have several options:
    1. RSS feeds and a feedreader (search)
    2. A recent_posts plugin (though it means additional hist on your mysql server)
    3. A customized Loop (with the same caveat as above)

    Lots of good info here and in the Codex: http://codex.wordpress.org/Main_Page

Viewing 1 replies (of 1 total)
  • The topic ‘PHP code to display posts on another page’ is closed to new replies.