WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have created a file example.php in the default site directory. I want to have the facilities of an Dashboard-Created-Page like the theme,navigation bar,navigation bar, header,footer etc..

share|improve this question

In your example.php file add this line at the top, this will enable all wordpress functions such as $wpdb, get_header(); etc.

<?php require_once('LINK-TO-DIRECTORY/wp-blog-header.php'); ?>

Recommended reading - Codex - Integrating WordPress with Your Website

share|improve this answer
thanks , it worked ! – Dinar Aug 13 '12 at 18:33
a +1 will be appreciated :) – amit Aug 13 '12 at 18:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.