Black Friday sale! Get 25% off WPSP Pro! Discount automatically applied at checkout.

[Support request] Excerpt length

Please login to receive premium support.

Support for the free plugin can be found here.

Home Forums Pro Support Excerpt length

Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #678
    John
    Participant

    Hi Tom,

    Is there a way to buildin a function in WP Show Posts.

    WPSP overides the excerpt function of WP en uses the full post. Is it possible to use WP’s excerpt instead.

    Is it possible to have some more options in content excerpt.
    for example: also to have excerpt length in characters, with the option not to break words and/or the option not to break a sentence?

    Kind Regards
    John

    #685
    Tom
    Keymaster

    Hi John,

    You can choose between showing the excerpt or full post in the “Content” section when creating your list.

    You can also choose the word limit in there as well.

    The excerpt function has been replaced with a better one in the next version, but I’m not sure if not breaking words/sentences is possible.

    #688
    John
    Participant

    Hi Tom

    Thanks for your quick reply even during the weekends.
    I have seen a plugin which does break on characters but further on WPSP is far more beautiful (this one)

    What i like to do is to have 3 blocks besides eachother which all have the same height.

    Kind regards and enjoy your weekend
    John

    #690
    Tom
    Keymaster

    Ah, WPSP doesn’t use the_excerpt() function, as doing so would mean the excerpt length you set would also apply to your regular blog posts (which use the same function).

    So instead, we use the wp_trim_words() function, which allows us to set the excerpt length, read more etc.. only for posts in WPSP without affecting other posts throughout your site.

    Of course, if you needed to use the_excerpt(), you could fork WPSP and make that change yourself for your own version: https://github.com/tomusborne/WP-Show-Posts

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.