Support » Plugin: List category posts » [Plugin: List category posts] feature request – excerpt length

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Also, in the sidebar widget, how do i display posts from a certain tag? The documentation says it can be done, but no HOW.

    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.

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: List category posts] feature request – excerpt length’ is closed to new replies.