Support » Fixing WordPress » "Read more" link using List Category Posts plugin

  • Hello, I am using the List Category Posts plugin and am displaying certain category posts on different pages.

    example page:

    I have been searching threads for a couple hours now about how to add a “read more” link after my excerpt, but none of them seem to work.

    I have my category posts in my pages as: [catlist id=### excerpt=yes] and I have written excerpts manually via each post.

    What’s the easiest way to add a “read more” link to each of my posts when showing on my category pages?

    Thanks in advance

Viewing 4 replies - 1 through 4 (of 4 total)
  • I also searched for a way to do this and didn’t find a solution, other than manually adding a read more link to each excerpt.

    FEATURE REQUEST: It would be great if the plugin could support the <!–more–> tag when excerpt is set to yes. I think this would facilitate excerpt creation and would take care of the “read more” link.

    Insert the following code into line 187 of /list_category_posts/include/CatListDisplayer.php:

    private function get_post_link($single, $tag = null, $css_class = null){
    				$info = '<a href="' . get_permalink($single->ID) .
    					'" title="more">Read more</a>';
    				return $this->assign_style($info, $tag, $css_class);

    then in your template call using:

    $lcp_display_output .= $this->get_post_link($single);

    hello I try to do as sebjam says. I have modified CatListDisplayer.php and the template but what should I do in my post to make it work
    [catlist id=22 numberposts=-1 excerpt=yes and what for the link more ? ]
    thank you for your answer

    PS, excuse my poor english 😉

    I have the ‘read more’ text displayed, but it is below the excerpt. What I am looking for is to have the ‘read more’ text be right after the excerpt – not below it. What section to I have to modify to do this? Many thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘"Read more" link using List Category Posts plugin’ is closed to new replies.