djones8520
Forum Replies Created
-
Forum: Hacks
In reply to: get_posts the_content() problemI 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
In reply to: Sliders duplicatingYeah, 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
In reply to: Sliders duplicatingI 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
In reply to: Calling a php file within a php fileDefiantly 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
In reply to: Calling a php file within a php fileIt 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.