Support » Fixing WordPress » Display blog posts on separate static page

Viewing 4 replies - 1 through 4 (of 4 total)
  • You can try RSS feeds. Display recent blog posts on the static page via RSS and PHP.

    See this article. http://webtips.in/parse-and-display-rss-feeds-with-php

    I am sure it will help

    You could also include wp-blog-header.php and then simply use the loop. For example:

    require('blog/wp-blog-header.php');
    
    query_posts('category_name=news');
    if ( have_posts() ) {
    	while ( have_posts() ) {
    		the_post(); 
    
    		the_title();
    
    	}
    }

    Thanks for the replies guys.

    jeff I’ve tried your solution and it is pulling in the latest posts – just need to work on the styling now. If I want to show the latest 3 posts from all categories what would I change that to – category_name=news?

    Ok I’ve just changed it to showposts=3 and it seems to work.

    Thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Display blog posts on separate static page’ is closed to new replies.