Forums

Create page without using a template? (3 posts)

  1. davidsworlduk
    Member
    Posted 2 years ago #

    Hi,

    I'm looking for advice on how I can create a php page that will query my user database and display the output in an iFrame on a page.

    The long term goal is I'd like to create a visible profile page for each user of my site, pulling in statistics that I'll be importing into another table.

    Problem is, I've created a basic php page that queries my db and outputs it to an HTML table, but my php code isn't executed and my page displays as a normal template page with no content.

    Is it possible to do what I'm trying? I just want a blank page displayed with my HTML output. Is there a tag that will allow me to use a page without applying the template to it?

    Thanks in advance,

    David.

  2. JLeuze
    Member
    Posted 2 years ago #

    You could create a page template with just the code you want. It doesn't have to have the design of the rest of the pages, or even the Loop to load whatever page you add the template to, just the few bits that make WordPress go, and your own code.

  3. alchymyth
    The Sweeper
    Posted 2 years ago #

    check plugins such as the 'execphp' plugin:

    http://wordpress.org/extend/plugins/exec-php/

    that should allow you to execute php code in a 'normal' page.

    (on the other hand, it is not difficult to create a page template and then attribute it to a page)

Topic Closed

This topic has been closed to new replies.

About this Topic