PHP/Wordpress Issue

Discussion in 'PHP' started by DrewAMP, Feb 12, 2008.

  1. #1
    I posted this in the actual Wordpress support forums, but no one seems to answer. So here's my second try:

    I'm trying to get this Wordpress plugin called WP-Adserve to work. I call it by using the "<?php AdServe('zone'); ?>" code, but as soon as I apply that I get the following error:

    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /homepages/12/d205617820/htdocs/wp-content/themes/silhouette-3column/home.php on line 14

    Line 14 is where the "<?php AdServe('zone'); ?>" is being applied to.

    I think the parse is happening because I already have something similar in my header.php called "<?php wpads('index'); ?>". I don't know if that's messing up the other, just a guess.

    Any help is appreciated.

    Thanks.
     
    DrewAMP, Feb 12, 2008 IP
  2. xubz

    xubz Peon

    Messages:
    18
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try "?><?php AdServe('zone'); ?><?php"

    Probably you are pasting your code right inside another opened PHP Tag!
     
    xubz, Feb 13, 2008 IP