Title: djones8520's Replies | WordPress.org

---

# djones8520

  [  ](https://wordpress.org/support/users/djones8520/)

 *   [Profile](https://wordpress.org/support/users/djones8520/)
 *   [Topics Started](https://wordpress.org/support/users/djones8520/topics/)
 *   [Replies Created](https://wordpress.org/support/users/djones8520/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/djones8520/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/djones8520/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/djones8520/engagements/)
 *   [Favorites](https://wordpress.org/support/users/djones8520/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [get_posts the_content() problem](https://wordpress.org/support/topic/get_posts-the_content-problem/)
 *  Thread Starter [djones8520](https://wordpress.org/support/users/djones8520/)
 * (@djones8520)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/get_posts-the_content-problem/#post-5169147)
 * I figured it out. To use the_content with get_posts, you need the code below.
   I put it as the first line inside the foreach loop.
 * setup_postdata($key);
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sliders duplicating](https://wordpress.org/support/topic/sliders-duplicating/)
 *  Thread Starter [djones8520](https://wordpress.org/support/users/djones8520/)
 * (@djones8520)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/sliders-duplicating/#post-5118812)
 * Yeah, it looks like the theme isn’t updated anymore. I suspect it may have a 
   bug with wordpress 3.9.1. I’m going to change this to resolved, since I’m pretty
   sure it’s the theme. Our temporary solution is another slider plugin, but we’ll
   change the theme eventually.
 * Thanks for the help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Sliders duplicating](https://wordpress.org/support/topic/sliders-duplicating/)
 *  Thread Starter [djones8520](https://wordpress.org/support/users/djones8520/)
 * (@djones8520)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/sliders-duplicating/#post-5118727)
 * I deactivated the plugins and the issue is still there. I’m a little nervous 
   about switching the theme. What affect will switching the theme have on the site?
   That’s probably a newbie question, but I wasn’t the one that setup the theme 
   for this site.
 * Thanks for the help.
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Calling a php file within a php file](https://wordpress.org/support/topic/calling-a-php-file-within-a-php-file/)
 *  Thread Starter [djones8520](https://wordpress.org/support/users/djones8520/)
 * (@djones8520)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/calling-a-php-file-within-a-php-file/#post-5048407)
 * Defiantly a stupid moment… The file name was staffDisplay.php. I always knew 
   I should have if statements in case the file isn’t found, but I never do. I suppose
   sometimes you learn the hard way.
 * Thanks
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Calling a php file within a php file](https://wordpress.org/support/topic/calling-a-php-file-within-a-php-file/)
 *  Thread Starter [djones8520](https://wordpress.org/support/users/djones8520/)
 * (@djones8520)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/calling-a-php-file-within-a-php-file/#post-5048374)
 * It doesn’t seem to be working. The code I’m using is
 *     ```
       function displayStaff(){
       echo "Test<br />";
       include(dirname(__FILE__) . '/displayStaff.php');
       echo "Test2";
       }
       add_shortcode('displayStaff', 'displayStaff');
       ```
   
 * The 2nd php file is
 *     ```
       <?php
       	echo "<h1>Hi</h1>";
       ?>
       ```
   
 * The Test and Test2 print, but not the Hi. The files are in the same direction.
 * Thanks for the help.

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