I am trying to list my news items in 3 columns in a vertical design: image, date, title. I'm having some trouble calling the featured image. Is there a specific function that would help me with this? Also add CSS style to list them in 3 columns?
Website Example: http://ift.tt/1AcZvAQ
My Code:
<?php
$posts = get_posts( 'numberposts=2&order=DESC&orderby=post_title&category_name=news' );
foreach ( $posts as $post ) : start_wp();
?>
<?php toolbox_posted_on(); ?>
<h4><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title() ; ?></a></h4>
<?php endforeach; ?>
</div>
<a href="#" class="btn blue">Read All News</a>
Aucun commentaire:
Enregistrer un commentaire