Wednesday, October 16, 2013

Standalone template query support - wordpress

include these below files to your custom template:
include_once('../../../wp-config.php');
include_once('../../../wp-load.php');
include_once('../../../wp-includes/wp-db.php');
then do query_posts() or any function that is related to WP :-)

No comments:

Post a Comment

Suomen kieli (Imperfekti)

In Finnish, the imperfekti is the past tense that describes actions that happened in the past, like the English simple past (e.g., "I ...