"Read more" link using List Category Posts plugin (5 posts)

  1. Derek Smart
    Posted 3 years ago #

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

    example page: http://tbcforcbt.com/?page_id=142

    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

  2. Anamaria
    Posted 3 years ago #

    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.

  3. sebjam
    Posted 3 years ago #

    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);

  4. neecolas
    Posted 3 years ago #

    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 ;)

  5. derek642
    Posted 3 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic