Change Theme

Change Font Size

decrease size increase size

Search


WP Pages


This snippet/tutorial, allows you to use (integrate) your WordPress themes (header, footer, sidebar, etc.)
in order to create a normal PHP pages. Working Sample

First of all, make a new php file. Copy and paste the following code:

<?php require_once
("/path/to/wordpress/
wp-blog-header.php"); ?>
<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Step 2

<?php require_once(“/path/to/wordpress/wp-blog-header.php”); ?>

You need to edit /path/to/wordpress to your absolute path to WordPress.

You can leave the following untouched:

<?php get_header(); ?>
<?php get_sidebar(); ?>
<?php get_footer(); ?>

Sample Page

<?php require_once(“/path/to/wordpress/wp-blog-header.php”); ?>
<?php get_header(); ?>
<?php get_sidebar(); ?>

Your HTML codes to your pages should be here

<?php get_footer(); ?>

Or (depends on your set-up):

<?php require_once(“/path/to/wordpress/wp-blog-header.php”); ?>
<?php get_header(); ?>

Your HTML codes to your pages should be here

<?php get_sidebar(); ?>
<?php get_footer(); ?>

You’re done!



Leave a Comment
(will not published)
Bold Underlined Italics Quote Ext Link
:biggrin: :blank: :blush: :confused: :cool: :cute: :dead: :evil: :frown: :ouchies: :secret: :shock: :smile: :stress: :upsidedown: :wink: :yawn: :yell: :yuck: :yummy: :tv: :music: :heart: :drink: :floppy: :ahh: :aww: :duh: :eww: :grr: :hmm: :yay: :wtf: :wow: :umm: :omg: :lol: :huh: :blah: :haha: :hehe: :sigh: :rofl: :pssh: :ouch: :muah: :lmao: :iheartu:
* indicates required field