The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

[resolved] Feature request: Use image instead of gravatar (2 posts)

  1. sixtyseven
    Posted 3 years ago #

    As the title says: I'd like to see an option to use an image instead of the gravatar. Others than this: Nice work, love the plugin!


  2. Travis Ballard
    Plugin Author

    Posted 3 years ago #

    This is resolved, yes? same way you added the testimonial date in your othe rpost but instead of returning the date, you return get_the_post_thumbnail() or whatever instead.


    * add custom template tags to tbtestimonials plugin
    * @param mixed $t - twig instance
    function add_tags_to_tbt( $t ){
        $t->addGlobal( 'image', call_user_func( 'tbt_featured_image_tag' ) );
    * callback for image template tag in tbtestimonials
    function tbt_featured_image_tag()
        if( has_post_thumbnail() )
            return get_the_post_thumbnail();
        return false;
    # hook in
    add_action( 'tbt_template_functions', 'add_tags_to_tbt' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • TBTestimonials
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.