Support » Fixing WordPress » showing a php page on a WP page!

Viewing 4 replies - 1 through 4 (of 4 total)
  • You could either use a plugin like PHP Exec, which allows you to put PHP code directly into a page, or create a custom page template, and in the template file for that page, either add your PHP code directly, or just have it include lol.php

    I prefer the custom page template method myself, and it is very easy to do.

    You basically just duplicate your template’s page.php file, call it something like page-lol.php, and add a header like this:

    Template Name: lol

    Then when editing your page, just specify the page template to use.

    More info:

    if i want to address that lol.php on a WP page! What shall i write in the WP page after installing “PHP Exe”?

    <? php …. ???

    You could try something like:

    <?php include "lol.php"; ?>

    You may have to change that depending on where the lol.php file is stored.

    if my blog is:


    lol pages is on


    will the code be like:
    <?php include “../lolpage/lol.php”; ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘showing a php page on a WP page!’ is closed to new replies.