• The excerpt length option in the widget seems limited by the default wordpress excerpt length. I can go below it but not above it.

    Further, I’m using a filter to alter the default excerpt_more and so the widget is pulling in my new “read more” text but without linking it, meaning that if I use the widget’s “read more” I get something like this:

    This is my post…read more. <a href="http://#">Read More >></a>

    https://wordpress.org/plugins/recent-posts-widget-extended/

Viewing 4 replies - 1 through 4 (of 4 total)
  • I have the same issue. I modified the widget for the time being to fix this issue.

    the issue is in the “includes\functions.php” ~line 178
    $html .= wp_trim_words( apply_filters( 'rpwe_excerpt', get_the_excerpt() ), $args['length'], ' …' );

    The issue is that the excerpt is pulling in the “read more text” BEFORE it’s being trimmed. Here is my edit to fix the issue:

    $html .= wp_trim_words( apply_filters( 'rpwe_excerpt', get_the_content() ), $args['length'], ' …' );

    bgallagher, having 2 “read more” texts is very redundant lol so thanks!!!

    That was such a quick fix. Hopefully they add this to the actual plugin because it would get erased if it updates. I had to disable plugin updates so it doesn’t break in the future.

    bgallagher, your fix has help me out to, but now have the issue of getting the image layout bits included.

    eg. [gallery columns="4" orderby="title"] & [gallery type='flickr' user_id='98326023@N07' view='photosets' photoset_id='72157639352499826' columns='3' tag_mode='any' sort='date-posted-desc']

    Thank you for this solution, bgallagher.
    Every time I upgrade the plugin, I need to edit functions.php.
    I think developers could fix it finally.

    All the best,
    HousePlanet.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Excerpt Length and Read More Issues’ is closed to new replies.