WordPress.org

Ready to get started?Download WordPress

Forums

WordPress script context (2 posts)

  1. are79
    Member
    Posted 6 years ago #

    I want to create a separate script to serve requests from some external server. I want this script to have wordpress blog context. I need to access database using wpdb and to read/write options. What is a proper way to do this?

  2. Kafkaesqui

    Posted 6 years ago #

    "What is a proper way to do this?"

    That all depends. But see:

    http://codex.wordpress.org/Creating_a_Static_Front_Page#Integrating_WordPress

    Including wp-blog-header.php makes all WordPress functions and global vars available. Under some conditions you may only need (or want) to include wp-config.php.

Topic Closed

This topic has been closed to new replies.

About this Topic