WordPress.org

Ready to get started?Download WordPress

Forums

Blog feed on the homepage (2 posts)

  1. mellyg
    Member
    Posted 10 months 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 9 months ago #

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

    Many thanks
    Mel

Reply

You must log in to post.

About this Topic

Tags

No tags yet.