WordPress.org

Forums

GC Testimonials
[resolved] Image gallery shortcode showing instead of image gallery (3 posts)

  1. ubisan
    Member
    Posted 10 months ago #

    I have a testimonials page on my site at http://www.electricfencing.co.uk/testimonials.asp that shows the first four testimonials in full.

    I had put a WP gallery into the first one but it is showing the shortcode rather than the gallery. The gallery displays just fine when you view the individual testimonial. Any ideas how to fix this?

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

  2. Chris Dillon
    Member
    Posted 10 months ago #

    Here's a hack to process a shortcode within a shortcode (nested shortcodes in WP lingo).

    In testimonials.php find

    function gct_single_testimonial($testimonial) {

    and change the next

    return $display;

    to

    return do_shortcode( $display );
  3. ubisan
    Member
    Posted 10 months ago #

    That's awesome, works a treat. Thanks Chris.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.