WordPress.org

Ready to get started?Download WordPress

Forums

Easy Testimonials
[resolved] Widget - truncate content with "Read More" link (6 posts)

  1. M One
    Member
    Posted 6 months ago #

    Can't work out how to do this - obviously want widget to display XXX characters of testimonial content together with author and read more link as testimonials have wildly varying lengths and the widget has to fit into a layout.

    So how do I display rotating testimonials with a read more link?

    Thanks.

    https://wordpress.org/plugins/easy-testimonials/

  2. richardgabriel
    Member
    Plugin Author

    Posted 6 months ago #

    Hey!

    If you use the Read More tag inside your Testimonial content, and then use the Use Excerpt attribute on the widget or shortcode, you should have the desired effect.

    Best,
    Richard

  3. clownguts
    Member
    Posted 5 months ago #

    Hi Richard,

    How can I do this using shortcodes?

    Thanks

  4. richardgabriel
    Member
    Plugin Author

    Posted 5 months ago #

    Hey clownguts!

    Via a shortcode, you want the attribute use_excerpt=1 set.

    For example: [testimonials use_excerpt=1].

    That will display the content up to the Read More tag that you have input inside the Body of your Testimonial (the standard WordPress Read More tag.)

    Best,
    Richard

  5. clownguts
    Member
    Posted 5 months ago #

    Hi Richard,

    Thanks for that, worked perfectly

    Cheers

  6. richardgabriel
    Member
    Plugin Author

    Posted 5 months ago #

    Great! Thanks, clownguts.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.