The problem is:
i have made a new WP page on my blog called Hi and i want to show the contents of this page lol.php on that Hi page.
How do i add that!?
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:
<?php /* Template Name: lol */ ?>
Then when editing your page, just specify the page template to use.
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"; ?>
This topic has been closed to new replies.