I have the following coding:
<?php global $post; $args = array( 'numberposts' => 8); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); echo '<a href='.the_permalink().'>'.the_title().'</a><br />'; endforeach; ?>
Dreamweaver is highlighting a potential syntax error on line 6 & 7. I'm sure it's something very very simple but can someone point me in the right direction to solve this error please?