WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: WordPress Popular Posts] Adding "Read more" link after excerpt ? (2 posts)

  1. mcgyver47
    Member
    Posted 4 years ago #

    My question is all in Topic title
    I would like to display a Read more... link to full post after post excerpt
    Anybody any ideas how ?
    Thanks for a great plugin !

    http://wordpress.org/extend/plugins/wordpress-popular-posts/

  2. mcgyver47
    Member
    Posted 4 years ago #

    Answer is modifiying line 194 as follow

    $permalink = get_permalink($wppost->ID);
    $post_link ='<a href="' . $permalink . '" title="">' . "Lire la suite..." . '</a>';
    $post_content = "<span class=\"wpp-excerpt\">" . $this->get_summary($wppost->ID, $summoner) . "<span class=\"wpp-link\">" . $post_link . "</span>". "</span>";
    Hope this helps

Topic Closed

This topic has been closed to new replies.

About this Topic