Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • So this is still happening. With the new version (1.5.3) the line in question of course has moved:

    woothemes-testimonials-template.php
    Line 149
    Replace from:
    $content = apply_filters( ‘woothemes_testimonials_content’, apply_filters( ‘the_content’, get_the_content( __( ‘Read full testimonial…’, ‘our-team-by-woothemes’ ) ) ), $post );

    to:
    $content = apply_filters( ‘woothemes_testimonials_content’, get_the_content( __( ‘Read full testimonial…’, ‘our-team-by-woothemes’ ) ), $post );

    Essentially I am removing the the_content filter, which of course isn’t clever.

    I tried using the woothemes_testimonials_content but couldn’t get what I wanted.

    I’ve found the issue though, and its not to do with the vanilla plugin. I had this code in my functions:
    function limestreet_woothemes_testimonials_item_template( $tpl, $args ) {
    if ( ‘individual’ == $args[ ‘category’ ] ) {
    $tpl = ‘

    ‘;
    $tpl .= ‘<p>%%TEXT%%</p>’;
    $tpl .= ‘<cite class=”individual-testimonial-author”>%%AVATAR%% %%AUTHOR%%</cite>’;
    $tpl .= ‘

    ‘;
    } else {
    $tpl = ‘<div class=”company-slider-item”>’;
    $tpl .= ‘%%AVATAR%%’;
    $tpl .= ‘</div>’;
    }

    return $tpl;
    }
    add_filter( ‘woothemes_testimonials_item_template’, ‘limestreet_woothemes_testimonials_item_template’, 10, 2 );

    Basically, already effecting the inner text of the testimonial – adding some more <p>’s.

    Youve got this style:
    .individual-testimonial p { … }
    to denote how I testimonial should look. Why not give this a class to stop people adding extra paragraph tags that effect the testimonial.

    ie:
    .individual-testimonial p.testimonial_content

    Then obviously moving that class into the markup as well. Would resolve all conflicts like this.

    Hopefully this helps clear up the problem

    Change line 145 from:
    $content = apply_filters( ‘woothemes_testimonials_content’, apply_filters( ‘the_content’, get_the_content() ), $post );

    to

    $content = apply_filters( ‘woothemes_testimonials_content’, get_the_content(), $post );

    i.e. basically remove the apply_filters from the_content. There is need of this sometimes, but this will work as a quick fix for you.

    Thread Starter dodg

    (@dodg)

    Sorry no no luck at all. I ended up hacking the WP core code to get it to work. I know the various issues with that ….
    In another project where I used the same function I just told them they had to create the users base info then edit the user to add the extra info.

    Let me know if you find the answer ….

    Thread Starter dodg

    (@dodg)

    Bumpy-de-bump ??

Viewing 4 replies - 1 through 4 (of 4 total)