read more disappear using templates
-
Hello, your plugin is Great!
I’ve just a little issue:
I’m building a page using the template in the shortcode, but read more disappear from out-put.
If I delete the template parameter from short code
[catlist id=1 template=templatename posts_morelink="Read more …"]
it work again.
Maybe the code for the readmore post output is missing in the template?
I started from your default.php just making some little changes.
thanks
-
I am having the same problem.
Solve this by replacing the CatListDisplayer.php in the plugins/list-category-posts/include folder with the code here: https://github.com/picandocodigo/List-Category-Posts/blob/master/include/CatListDisplayer.php
Then, in your template:
Under:
$lcp_display_output .= $this->get_excerpt($single, ‘div’, ‘lcp_excerpt’);Add the following:
// Get Posts “More” link:
$lcp_display_output .= $this->get_posts_morelink($single);Good luck!
This should be fixed in the latest release, version 0.51. Please update and let me know if it’s working for you. Thanks!
I’ve installed a fresh version of LCP on a new site and the example template still does not include:
$lcp_display_output .= $this->get_posts_morelink($single);
This means that as soon as you use the supplied default template your morelink vanishes.
I also had this problem, updated to the new version and am still unable to see the read more link (also excerpt_size not working). Anthony, did adding that line of code fix your issue? If so, where would it go? Thanks in advance for any help.
In your template ( in your child themes list-category-posts folder eg. my_lcp_template.php ):
Under:
$lcp_display_output .= $this->get_excerpt($single, ‘div’, ‘lcp_excerpt’);Add the following:
// Get Posts “More” link:
$lcp_display_output .= $this->get_posts_morelink($single);
- The topic ‘read more disappear using templates’ is closed to new replies.