WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Another Template Page? (3 posts)

  1. goxu
    Member
    Posted 7 years ago #

    Hi,

    I'm wondering if it is possibe to make another template page which can be accessed from a browser, besides the index, pages, category, archives etc,.

    The reason I need it is because when I try new plugins, there is no clean pages to run it. Probablly the best way is to do it on localhost but sometimes I don't have a machine that runs http, php, and mysql server.

    Currently I put phpcodes into a post or page with the plugin called PHP EXEC. However, I recently have realized that the test results gets affected by some factors with the theme template embedding XHTML comments into the source. Also, every time they load sidebars and other stuffs slow down loading.

    So, if there is a way to have another clean page and could be accessed from a browser, it would be awsome.

    Anyinforamation would be greatly appreciated.

  2. Kafkaesqui

    Posted 7 years ago #

    I wouldn't call it a template, but you can access any WP function or feature by adding this to the start of a standard PHP document:

    <?php include('wp-blog-header.php'); ?>

    Make sure the path to wp-blog-header.php is correct. Just keep in mind testing plugin functions and whatnot this way is not a perfect solution either, especially if a plugin expects to do its thing in a category, on a Page, or whatever.

  3. goxu
    Member
    Posted 7 years ago #

    Thanks for the tip. I really appreciate it.

Topic Closed

This topic has been closed to new replies.

About this Topic