Posts Tagged ‘template tags’

Use the WordPress Loop Remotely

Monday, August 11th, 2008

How does one make use of the convenient template tags and The Loop offered by Wordpress outside of the theme system and while outside the WP root directory? After hours of looking for what I thought was a very basic question, I finally stumbled across Kenn Wilson’s post Display Wordpress content outside of your blog. Thank you Kenn!

Wordpress is a very powerful and flexible content management system (CMS) for blogs, and is among the first choices for anyone looking for a way to include dynamic content on their web sites. When using Wordpress to power a news or blog section of an existing web site, authors will often want to display a list of headlines or the latest post on the front page of the site, outside of the Wordpress-powered section. Using a bit of PHP and the Wordpress API, this is easy to do.