WordPress.org

Ready to get started?Download WordPress

Forums

custom include (2 posts)

  1. jgold03
    Member
    Posted 7 years ago #

    How can I do my includes to get access to all the support functions (like get_header, get_footer) without executing main() operations

  2. moshu
    Member
    Posted 7 years ago #

    You can make any non-WP (php) file "aware of WordPress" by adding this on the top, before everything:
    <?php
    require('./path-to-your-blog/wp-blog-header.php');
    ?>

    All the WP functions will bee available on that file.

Topic Closed

This topic has been closed to new replies.

About this Topic