When you use endforeach;
, you have to use :
instead off {
when starting the foreach
.
<ul class="project-extension-side-link">
<?php foreach($projectextensions as $projectextension) : // <--- ?>
<li <?php ifecho ($section=='project-extension')
? 'class="active"': {echo''); 'class="active"';}?>><span>Project 1</span></li>
<li><a href=""><?php echo $projectextension->post_title; ?></a></li>
<li><a href="">Project 3</a></li>
<li><a href="">Project 4</a></li>
<li><a href="">Project 5</a></li>
<li><a href="">Project 6</a></li>
</ul>
<?php endforeach; ?>
</ul> <?php}?>
Greetz Bjorn