Support » Fixing WordPress » Another Template Page?

  • Resolved goxu

    (@goxu)


    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Thanks for the tip. I really appreciate it.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Another Template Page?’ is closed to new replies.