Title: ExecPHP and includes
Last modified: August 20, 2016

---

# ExecPHP and includes

 *  [bluedrag](https://wordpress.org/support/users/bluedrag/)
 * (@bluedrag)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/execphp-and-includes-1/)
 * I’m trying to include a php file inside a post (there is just a div with several
   pictures inside the php file) It doesn’t seem to be working. execPHP is definitely
   running, I’ve tested it with an echo but nothing happens when I switch the echo
   for the include. Maybe a syntax error? Here is the code I’m using.
 * `<?php include('wp-content/theme_name/electric-products.php'); ?>`
 * I should also note there is no php error when I load up the page. Nothing happens
   at all. But the echo works fine…

Viewing 1 replies (of 1 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/execphp-and-includes-1/#post-2158020)
 * Try using the full path from the document root.

Viewing 1 replies (of 1 total)

The topic ‘ExecPHP and includes’ is closed to new replies.

## Tags

 * [phpexec](https://wordpress.org/support/topic-tag/phpexec/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [14 years, 11 months ago](https://wordpress.org/support/topic/execphp-and-includes-1/#post-2158020)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
