Hi,
Just a quick question, and again I apologise if it’s been asked or answered before! I’m creating a static landing page using the GP sections plugin and was wondering how I go about including the most recent blog post in one of the sections? I’ve tried adding the following code but it essentially comments the php out.
<?php
global $post;
$myposts = get_posts('numberposts=1&category=3');
foreach($myposts as $post) :
?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php endforeach; ?>
Any help would be very much appreciated!
Thanks,
lock-e73