I'm using this code to display a recent WordPress post on my homepage (I am using this code to display a post as I use a static homepage):
<?php
$arguments = array('numberposts' => '1');
$posts = wp_get_recent_posts($arguments);
foreach($posts as $post){
the_post_thumbnail('full');
the_title();
the_excerpt();
}
?>
However, I need to be able to add specific classed to the title and excerpt, so the output would be similar to:
<h1> The Title </h1>
<div class="large-8 columns"> Content from the_excerpt </div>
Currently, it simply outputs the code with no classes or divs.