What is the easiest way to display articles entries posted on a wordpress site (from a particular category) onto another non-wordpress site that is built in PHP/MySQL.
I understand wordpress uses MySQL so in theory I could connect via PHP to the database and pull the content directly if I can figure out the schema used
I know I can get an RSS feed – is there a parser available that I could use to get all article content including images etc?
WordPress content on non-Wordpress pages in same domain
This is a very database-intensive method as it loads almost the entirety of WordPress behind the scenes, but it’s easy and well-documented:
Display WordPress content outside of your blog
This assumes that the WordPress blog is on the same server as the non-Wordpress content and you can reference wp-load.php
WordPress content on non-Wordpress pages on remote domain
One of the simplest simplest methods to syndicate content onto a remote domain is to parse the RSS feed using MagpieRSS.
There are a large number of code samples available:
To get the RSS feed for a particular category, use something like
More here:
If the other pages are located on the same server you can do this by loading the wp-load.php file
First add this to the top of the page to load wp-load.php
Then you can loop all the content via:
Checkout this link: The Loop (WordPress Codex)