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.
$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 for the pointer to the plugin. I’d actually had a look at that one as well as this one – – which also includes shortcodes and ability to customise with CSS. Will have a bit more of a play with both and see what I can do.