WordPress.org

Forums

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

  1. M One
    Member
    Posted 1 year 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 1 year 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 11 months ago #

    Hi Richard,

    How can I do this using shortcodes?

    Thanks

  4. richardgabriel
    Member
    Plugin Author

    Posted 11 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 11 months ago #

    Hi Richard,

    Thanks for that, worked perfectly

    Cheers

  6. richardgabriel
    Member
    Plugin Author

    Posted 11 months ago #

    Great! Thanks, clownguts.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Testimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.