WordPress.org

Ready to get started?Download WordPress

Forums

Posts By Tag
[resolved] Changing the excerpt lenght & removing the [...] string (7 posts)

  1. Media X
    Member
    Posted 1 year ago #

    Hi Sudar,

    i'm satisfied with the plugin features. Could you just let me know how to limit the excerpt lenght and change the [...] string.
    In my theme's functions.php is all set up to limit the excerpt to 22 words and add ... string but your plugin is bypassing it (in the widget).

    Thanks in advance!

    MX

    http://wordpress.org/extend/plugins/posts-by-tag/

  2. Sudar
    Member
    Plugin Author

    Posted 1 year ago #

    The Plugin is getting the excerpt by using WordPress's excerpt function.

    Any idea how the excerpts are generated in your theme? Does it do it the WordPress way?

    If not, there are two way by which you can solve the problem

    - Change your theme, to generate excerpts the WordPress way (or)
    - My Plugin also provides a filter. You can use that filter to change the excerpts.

  3. Media X
    Member
    Posted 1 year ago #

    I changed the default excerpt lenght & the string in wp-included/formatting.php.
    I know it's not the best way but it's surely the quickest. It would be nice to add the excerpt lenght option to the plugin's options in the future versions.
    Thank you!

  4. Sudar
    Member
    Plugin Author

    Posted 1 year ago #

    It would be nice to add the excerpt lenght option to the plugin's options in the future versions.

    Would consider this feature request.

    But if you change the excerpts length by using the proper WordPress functions in your theme, then it will get automatically reflected in my Plugin as well.

  5. RiccardoP
    Member
    Posted 11 months ago #

    I also would like to have this features in the next version!

  6. 96320
    Member
    Posted 5 months ago #

    - My Plugin also provides a filter. You can use that filter to change the excerpts

    Hi - first of all thanks for a great plugin. I'm having the same issue with very long excerpts. Any chance you can clarify how I use the filter?

  7. Sudar
    Member
    Plugin Author

    Posted 5 months ago #

    When you call the template function, enable the excerpt_filter options by setting it to true.

    Also checkout http://sudarmuthu.com/wordpress/posts-by-tag#example-template to find out how to enable individual options

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic