WordPress.org

Forums

Blog feed on the homepage (2 posts)

  1. mellyg
    Member
    Posted 1 year ago #

    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?

  2. mellyg
    Member
    Posted 1 year ago #

    Is there anyone out there that can help me with this? Cant seem to find it on google.

    Many thanks
    Mel

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.