This is my code, where i keep getting either error: unexpected endforeach; if endforeach is used or unexpected end of file if i don't use endforeach; It's driving me crazy!!
<ul id="portfolio-filter">
<?php
$k=0;
$services = array('all', 'marketing', 'SEO', 'web-design', 'web-development', 'wordpress');
foreach($services as $key) : ?>
<li class="<?php if($k==0) { ?> active <?php { ?>"><a class="<?php echo $key; ?>" href="#"><?php echo $key; ?></a>/</li>
<?php endforeach; ?>
</ul>
Any help will be appreciated!