• Resolved ldjautobody

    (@ldjautobody)


    Hi guys. Love the plugin. I have finally gotten the “gist” of how to manage the custom shortcodes and they are working great. I just need to add an image to the testimonials. I have tried setting the image in the “testimonial post” but it does not show up. I know the image is ok because it is being used in other places. Any suggestions as to how to get the image to load and show up in the testimonial when it loads?

    Thanks for any help I can get with this. The rest of it looks great and the plugin is perfect for what we are trying to accomplish with the exception of the image.

    You can see the testimonial page at https://www.ldjautobody.com/testimonials/

    Ldjautobody

    https://www.ads-software.com/extend/plugins/ivycat-ajax-testimonials/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter ldjautobody

    (@ldjautobody)

    I was just looking at your documentation and after looking at my “testimonials” in the dashboard, I realized that the image does show up if the testimonial is viewed as a “single testimonial” by itself. However, on my “Testimonials” page, where the testimonials are shown as a list, the image does not show up. It there a way to force the image to show when using the “list” shortcode? Or, perhaps there’s a way to modify the PHP and get it to show up that way?

    Thanks for any help. Page is at https://www.ldjautobody.com/testimonials/

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Hey ldjautobody,

    Somehow your post posted twice, so I’m going to close this one and answer in the other thread at:

    https://www.ads-software.com/support/topic/problem-adding-image-to-testimonial?replies=2#post-4400907

    Eric

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Hi ldjautobody,

    I think that the issue is related to the default loop you’re using.

    By default, the plugin displays the list of testimonials using the testimonials-loop-template.phpfile. This loop is usingthe_excerpt()by default, but that strips images and markup, so you’ll want to change tothe_content() instead.

    Step 1
    Copy the testimonials-loop-template.php from your plugin directory to your theme’s main directory.

    Step 2
    Edit that sucker. I’d change it from this:

    <!-- Start of Testimonial Wrap -->
    <div class="ivycat-testimonial testimonial-wrap post hentry ">
    
    	<!-- This is the output of the testimonial excerpt -->
    	<blockquote class="testimonial-content content entry-content">
    		<?php the_excerpt(); ?>
    	</blockquote>
    
    	<!-- This is the output of the testimonial author -->
    	<footer class="testimonial-source">
    		<cite><?php the_title(); ?></cite>
    	</footer>
    
    </div>
    <!-- // End of Testimonial Wrap -->

    To this:

    <!-- Start of Testimonial Wrap -->
    <div class="ivycat-testimonial testimonial-wrap post hentry ">
    
    	<!-- This is the output of the testimonial excerpt -->
    	<blockquote class="testimonial-content content entry-content">
    		<?php the_content(); ?>
    	</blockquote>
    
    	<!-- This is the output of the testimonial author -->
    	<footer class="testimonial-source">
    		<cite><?php the_title(); ?></cite>
    	</footer>
    
    </div>
    <!-- // End of Testimonial Wrap -->

    Step 3
    Save and test.

    Hope that helps.

    Thread Starter ldjautobody

    (@ldjautobody)

    Hi Eric,

    The post did not post “twice”…I had re-posted to let you know that I DID notice that when the testimonial is shown “by itself” and NOT IN A LIST, the image shows up in the testimonial.

    It is when the testimonial is shown in a “list” that the image does not show up. I just wanted to clarify that. However, we still need to address the issue that the image is not showing in the “list” because that’s where the problem originally started and is STILL not working.

    Thanks, Ldjautobody

    Thread Starter ldjautobody

    (@ldjautobody)

    Thanks Eric,

    That was the problem. As always…you guys rock!

    Denise, Ldjautobody

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Quite welcome, Denise. Thanks! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Problem adding image to testimonial’ is closed to new replies.