WordPress.org

Ready to get started?Download WordPress

Forums

Flexible Recent Posts
[resolved] How to trim excerpt length? (4 posts)

  1. wujing05
    Member
    Posted 1 year ago #

    Hi,

    Thanks for creating the handy widget plugin. One thing is that the default excerpt is really long, is there a way to control the character length of s post excerpt?

    Looking forward to your reply

    Cheers,
    Jing

    http://wordpress.org/extend/plugins/flexible-recent-posts/

  2. Paul Annekov
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, Jing :).

    There is no such capability at this time. But you can request it here.

  3. wujing05
    Member
    Posted 1 year ago #

    Thanks Paul, but is there not a way to do it in PHP?

  4. Paul Annekov
    Member
    Plugin Author

    Posted 1 year ago #

    If you have some skills in PHP - you can add WordPress filter to set excerpt length before widget will be shown. You can read about this here. But if you will do all this stuff like in example - all your posts' excerpts on page will have the same length. So you must apply this filter before widget display and remove it after render.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic