I have client that built a website that is part static html and part WordPress. The WordPress is only for the blog while the static pages are for the rest of the site content, including the home page.
This same client would like to be able to “pull” recent blog posts and comment counts from the blog and post them on the home page.
I am not familiar with WordPress, so I am posting this question to find out if this is even possible. If it is, I will naturally want to know “how?” but this is to get the ball rolling.
Any constructive feedback is welcome. Thanks!
If you’re on a remote server, you could use WordPress’s built-in RSS or XMLRPC interfaces.
If you’re on the same server, this snippet is tested against WP 2.7 but will probably work in 3.0 as well
Sure you can fetch whatever you want from the wp database. There is a table posts with all the posts in it. Just connect thru it like you would any other database and query away!