WordPress Tip : How to run the loop outside of WordPress

Paste the following code on any PHP file where you want to run your WordPress loop. Don’t forget to modify the following:
line 4: Please specify the path to your WordPress wp-blog-header.php file.
line 5: Query posts using the query_posts() function.

To view or add a comment, sign in

More articles by Mazharul Islam (Maz)

Insights from the community

Others also viewed

Explore topics