<?php foreach($posts as $post) { ?> <h1> <a href="<?php echo $post->permaUrl ?>"> <?php echo $post->title ?> </a> </h1> <?php } ?>