WordPress.org

Forums

List category posts
feature request - excerpt length (4 posts)

  1. metaprinter
    Member
    Posted 4 years ago #

    I needed the excerpt length to shorter but the only way to control this was to go in and change line 178 from

    if (strlen($lcp_excerpt) > 255) {
                        $lcp_excerpt = substr($lcp_excerpt, 0, 252) . '...';
                }

    to

    if (strlen($lcp_excerpt) > 135) {
                        $lcp_excerpt = substr($lcp_excerpt, 0, 132) . '...';
                }

    I'd like to see this as a dynamic field in the widget form instead of hard coded. Great plugin otherwise.

    http://wordpress.org/extend/plugins/list-category-posts/

  2. metaprinter
    Member
    Posted 4 years ago #

    Also, in the sidebar widget, how do i display posts from a certain tag? The documentation says it can be done, but no HOW.

  3. metaprinter
    Member
    Posted 4 years ago #

    I wound up using the shotcode in a text widget [catlist name=nj numberposts=10] where name = the slug of the desired tag.

    to enable shortcodes in the sidebar widget add:
    add_filter('widget_text', 'do_shortcode');
    right before the closing ?> in your functions.php file.

  4. metaprinter
    Member
    Posted 4 years ago #

    on second look this does not appear to be working. It is not pulling from the assigned tag.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • List category posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic