Blog feed on the homepage
HI I have a small blogfeed on the homepage but at the moment it is not linking to the blog stories. The website is http://qualitymatters.ie
And the code is `<h3>Our latest posts</h3>
$args = array( ‘posts_per_page’ => 3, ‘order’=> ‘ASC’, ‘orderby’ => ‘modified’ );
$postslist = get_posts( $args );
foreach ( $postslist as $post ) :
setup_postdata( $post ); ?>
<h5><a href=” get_post()”><?php the_title(); ?></a></h5>
<?php the_excerpt(); ?>
Does anyone know what I need to change the link to so that it links to the blog story?
- The topic ‘Blog feed on the homepage’ is closed to new replies.