WordPress.org

Forums

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

  1. ubisan
    Member
    Posted 1 year 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 1 year 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 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic

Tags

No tags yet.