Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.