Maximor
Новичок
PHP:
$option = '<option value="'.$tag->slug.'" <?php echo isset($_GET['tag'])?($_GET['tag']==$tag->slug?'selected':''):''; ?>>';
Надо как-то так
PHP:
$option = '<option value="'.$tag->slug.'" '.(isset($_GET['tag'])?($_GET['tag']==$tag->slug?'selected':''):'').'>';