• Resolved Carson

    (@slowburn)


    Love this plug-in, and am very excited about using it. I am running into a couple of issues though that I am unable to solve using previous posts. If I need to make a separate post for each I am happy to do so.

    1. The shortcodes don’t seem to be working. I created a page called “test” and tried a few different variants of the strong shortcode and none seem to work. For simplicity I currently am using the following code on the test page:

    [strong]

    If you look at my site at http://wghnlaw.com/test/ you will see that it just lists the code and attributes. However, looking at the bottom of another page (http://wghnlaw.com/) you can see that the Strong widget is working fine.

    2. I have the same problem as posted at https://wordpress.org/support/topic/read-more-link-from-widget?replies=8 . (Clicking on the “Read more” link takes me to the testimonial page, which I prefer, but that page doesn’t list the client info). I tried the workaround in that post, attempting to adapt it to my theme (Eventbrite Event), but it did not change anything. I wouldn’t mind even linking to a regular page listing all the testimonials, but the shortcodes are not working for me as mentioned in point 1 above.

    Appreciate any help. Thanks!

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

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks for the link. Always helps to see things first-hand.

    1. Try editing the test page in Text mode and make sure the shortcodes are not wrapped in quotes or tags like <code> or <pre>. Remove the ellipsis from [strong ...].

    2. Linking to the testimonial post and having the client fields in that post requires a custom testimonials.php template in your theme. (I really need to write a tutorial for this.)

    But let’s solve #1 first.

    Thread Starter Carson

    (@slowburn)

    Hi Chris, thanks for the response. It has no wrappers in Text mode, and no ellipsis either. That’s what’s kind of confusing me. All I’m using is

    [strong]

    Here is a screen shot of my WordPress editor:

    strong

    I even went back and retyped what you see there, published, and it came up the same as what you see on the test page. Happy to try something else if you’ve ideas. Thanks!

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Deactivate any caching plugin or web host caching. I see this: http://screencast.com/t/09VNDzPOptT

    Thread Starter Carson

    (@slowburn)

    Finally was able to confirm no caching on GoDaddy’s side, and no caching plugins installed.

    Yeah, sorry, I meant I’m seeing the same thing that you’re seeing on the output, ellipsis and all. But nothing but the

    [strong]

    by itself on the input side, so no way to remove the ellipsis that I can see as it’s not on the editing pages.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Puzzling. If you want me to look into it, send me a temporary admin login via https://www.wpmission.com/contact

    Thread Starter Carson

    (@slowburn)

    Sweet thanks so much for your help. I have sent the info through the link you provided.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    We narrowed this down to the EventBrite theme. The shortcode worked after switching to a default theme. But we still don’t know the real cause.

    Thread Starter Carson

    (@slowburn)

    Thank you for looking into it. I can live without the shortcodes as the widget seems to work fine, if I could get the page linked to “Read More” to display at least author info.

    To create the unique testimonials.php template, I looked over this topic:

    https://wordpress.org/support/topic/read-more-link-from-widget?replies=8

    I was unable, however, to adapt it to my theme.

    Any chance you uncovered the tweaks needed for the testimonials.php template?

    Plugin Contributor Chris Dillon

    (@cdillon27)

    I just found the problem. You somehow created a template testimonials.php with just the shortcode instead of copying the default template from the plugin as a foundation. (I really need to write a tutorial for this.)

    So the shortcodes will work now. See the test page.

    Every theme is different. To add the author info to the single testimonial page requires steps similar to the topic you mentioned.

    In your case, that means:
    1. copying single.php to single-wpm-testimonial.php
    2. copying tmpl/post-loop.php to tmpl/post-loop-testimonial.php
    3. editing that new file and adding the author field after the content, like in this snippet:

    <?php the_content( __( 'Read the rest of this entry »', 'eventbrite-event' ) ); ?>
        <?php // for Strong Testimonials: ?>
        <p class="client">
          <div class="name"><?php wpmtst_field( 'client_name' ); ?></div>
        </p>

    Or contact me again via email and I will gladly do it for you.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    And remember, the testimonials.php template in your theme now controls how the testimonials are displayed when using the shortcode. If that’s not what you want then simply delete the file and control will revert to the shortcode attributes like “title”, “thumbnail”, “length”, etc.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    One more thing. In single-wpm-testimonial.php, change

    get_template_part( 'tmpl/post-loop' );

    to

    get_template_part( 'tmpl/post-loop-testimonial' );

    Thread Starter Carson

    (@slowburn)

    Absolutely brilliant! Worked like a charm. Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Shortcodes broken, and testimonial formatting’ is closed to new replies.