I’m having some trouble with the following code, more than likely a n00b error so apologies in advance if the answer is obvious. The if/elseif/if works without the content but not with the test statements. Is there some subtlety of syntax i’m missing.
<?php
if (stripos($_SERVER['REQUEST_URI'],'/workshops/') !== false) {echo ''
}; elseif ($ticketlink = get_post_meta($post->ID, 'Ticket-Link-1', true))
{ echo '<div class="artist-buy-tickets-box"><a class="artist-buy-button" href="'.$ticketlink.'" title="Buy tickets" target="_blank">Buy Tickets</a>';}
else { echo '<h6>TICKETS ON SALE<br/>JUNE 15 2011</h6>' ;}
?>
You have a
;after yourifand missing a;after the first echo