Title: WordPress with Php Include.
Last modified: August 18, 2016

---

# WordPress with Php Include.

 *  [fadedrea](https://wordpress.org/support/users/fadedrea/)
 * (@fadedrea)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-php-include/)
 * alright all i want to know is the code to include the wordpress blog that i have
   by using php.
    This is my current code that i am using, but it doesnt work.
 * if(!$_SERVER[‘QUERY_STRING’]) { ?>
    <?php include (“public_html/blogg/index.php”);?
   >

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Darcie](https://wordpress.org/support/users/darcie/)
 * (@darcie)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-php-include/#post-276225)
 * blogg or blog?
 *  [patrickw](https://wordpress.org/support/users/patrickw/)
 * (@patrickw)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-php-include/#post-276261)
 * Umm, why do you have the if(!$_server stuff. can you just have the include by
   itself and then if needed, include the wp-blog-header.php too?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WordPress with Php Include.’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [patrickw](https://wordpress.org/support/users/patrickw/)
 * Last activity: [20 years, 6 months ago](https://wordpress.org/support/topic/wordpress-with-php-include/#post-276261)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
