Title: using
Last modified: August 21, 2016

---

# using

 *  [mmadden](https://wordpress.org/support/users/mmadden/)
 * (@mmadden)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/using-3/)
 * I’m attempting to include a php file on a page by adding shortcode. The snippet
   reads:
 *     ```
       <?php
       include "/selling_congruence.php";
       ?>
       ```
   
 * The shortcode on the page is:
 * `[php snippet=1]`
 * The page template loads the page content with:
 *     ```
       <?php while ( have_posts() ) : the_post(); ?>
           <?php the_content(); ?>
           <?php endwhile; ?>
       ```
   
 * The file I’m trying to load is named selling_congruence.php
 * I’ve seen where others have done this successfully but had to make changes to
   pathing, but the file I’m trying to load are directly in the theme’s folder right
   next to the template file. I’m doing this on wamp right now or I would post a
   link. Can anyone see a reason this wouldn’t be working? Thanks in advance!
 * [https://wordpress.org/plugins/php-code-for-posts/](https://wordpress.org/plugins/php-code-for-posts/)

The topic ‘using’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/php-code-for-posts_0d1022.svg)
 * [PHP Code for posts](https://wordpress.org/plugins/php-code-for-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/php-code-for-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/php-code-for-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/php-code-for-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/php-code-for-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/php-code-for-posts/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [mmadden](https://wordpress.org/support/users/mmadden/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/using-3/)
 * Status: not resolved