Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter djones8520

    (@djones8520)

    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);

    Thread Starter djones8520

    (@djones8520)

    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.

    Thread Starter djones8520

    (@djones8520)

    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.

    Thread Starter djones8520

    (@djones8520)

    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

    Thread Starter djones8520

    (@djones8520)

    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)