WordPress.org

Support

Support » Themes and Templates » Blog feed on the homepage

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>
    <?php
    $args = array( ‘posts_per_page’ => 3, ‘order’=> ‘ASC’, ‘orderby’ => ‘modified’ );
    $postslist = get_posts( $args );
    foreach ( $postslist as $post ) :
    setup_postdata( $post ); ?>
    <div>
    <h5><a href=” get_post()”><?php the_title(); ?></a></h5>

    <?php the_excerpt(); ?>
    </div>
    <?php
    endforeach;
    wp_reset_postdata();
    ?>`

    Does anyone know what I need to change the link to so that it links to the blog story?

Viewing 1 replies (of 1 total)
  • Is there anyone out there that can help me with this? Cant seem to find it on google.

    Many thanks
    Mel

Viewing 1 replies (of 1 total)
  • The topic ‘Blog feed on the homepage’ is closed to new replies.
Skip to toolbar