• Parse error: syntax error, unexpected '=' in /Users/Luke/Sites/Obi Audio/wp-content/themes/custom/header.php on line 86

    I am following a tutorial for adding a featured slider, however when I add this piece of code

    <div id=“shade”>
    <ul class=“navigation”>
    <?php
    $postcount = 0;
    $featured_query = new WP_Query(‘showposts=3’);
    while ($featured_query->have_posts()) : $featured_query->the_post();
    $do_not_duplicate[] = get_the_ID();
    $postcount++;
    ?></ul>
    </div>

    it spits out the error up above. I can’t understand why i doesn’t want to accept the = or whatever, but any help would be appreciated.

    I can’t really post a link to my site as it’s on my local network.

    I am using WordPress 3.0

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I suggest you to install compatible version theme and try to reinstall it.

    Thanks,

    Shane G.

    Thread Starter Infrasoundkids

    (@infrasoundkids)

    I’m working off TwentyTen

    I’m pretty sure it was to do with the quotations around showposts=3 but I changed them to the correct ‘

    However now I face this problem;

    Parse error: syntax error, unexpected ':' in /Users/Luke/Sites/Obi Audio/wp-content/themes/custom/slider.php on line 53

    This is the slider.php file

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Parse Error: syntax error, enexpected '=' in /header.php’ is closed to new replies.