Run a Loop Outside of WordPress

Include Basic WordPress Functions <?php // Include WordPress define(‘WP_USE_THEMES’, false); require(‘/server/path/to/your/wordpress/site/htdocs/blog/wp-blog-header.php’); query_posts(‘showposts=1’); ?> Run Loop <?php while (have_posts()): the_post(); ?> […]

Read More