Title: plugin that includes external scripts?
Last modified: August 19, 2016

---

# plugin that includes external scripts?

 *  [tronicscribe](https://wordpress.org/support/users/tronicscribe/)
 * (@tronicscribe)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-that-includes-external-scripts/)
 * I have a script I’m using which is a classified ads, and it contains many files
   all held in one folder called “jobs.” I tried using some php to call the script
   into my WP content area by changing the WP theme’s index.php file to read as 
   such:
 *     ```
       <?php get_header(); ?>
           <div id="wrapper">
               <div id="content">
                   <?php
                       require_once ($_GET['filename']);
                   ?>
               </div>
               <?php get_sidebar(); ?>
           </div>
       <?php get_footer(); ?>
       ```
   
 * and if you visit this url, you can see it has loaded into the page:
 * [http://tronicscribe.com/testies/index.php?filename=jobs/index.php](http://tronicscribe.com/testies/index.php?filename=jobs/index.php)
 * however there are many fatal errors and pages not found when you click on the
   categories and listings. plus I would prefer to keep my normal index.php in the
   theme so that it still includes my blog posts, and then have a different page
   load the script for the classifieds.
 * so I’m wondering if before I try to tackle all this, is there a plugin that would
   do the same thing? such as allow me to include files from a different directory
   such as my “jobs” folder that has the script? if so, I’d greatly prefer to use
   a plugin to manage this. thanks!

The topic ‘plugin that includes external scripts?’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [tronicscribe](https://wordpress.org/support/users/tronicscribe/)
 * Last activity: [17 years, 9 months ago](https://wordpress.org/support/topic/plugin-that-includes-external-scripts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
