Travis Ballard
Forum Replies Created
-
I’m thinking I need to add a filter to the shortcode so that if this is an issue we can change it easily via a user’s functions.php. Look for that in the next version. I’m a little tied up at the moment so I don’t exactly when the next version will be released but know that this will find it’s way into it.
Forum: Plugins
In reply to: [TBTestimonials] [Plugin: TBTestimonials] Preview Testimonial not workingHey Michael, thanks for the reply. Hopefully this resolves it for stresslessweb and others. If not let me know.
Thanks,
TravisThanks Michael!
The master branch on the TBTestimonials GitHub has a fix for this that I just added. You can view the changes here https://github.com/TravisBallard/TBTestimonials/commit/b71d3362ea4751c13421835be6ce4c669075c59f and you can download the patched version here https://github.com/TravisBallard/TBTestimonials/zipball/master
Thanks,
Travis Ballardif you’re using version 1.6.2 it will add a TB icon to the right of your site name in your admin bar when you’re logged in. Unless you’ve chosen to disable that. Either way you have my email address now from the other thread 🙂
can you provide me with some login information? I’ll be happy to log in and take a gander for you – junk@ansimation.net
have you resolved this yet? If not use the TB icon in your admin bar to send me an email and I’ll help you sort it out.
Is this still an issue? maybe it’s just the luck of the draw? How many testimonials do you have all together? I only ask because both shortcodes work as expected on my end.
bansalnaveen: have you figured this out yet? if not use the TB icon in your admin bar to send me an email.
Thanks,
TravisAwesome, Thanks for the reply, Tom!
Forum: Plugins
In reply to: [TBTestimonials] [Plugin: TBTestimonials] Get testimonial by company name?Hey Mark,
yes, you can use something like this
$query = new wp_query( array( 'meta_key' => 'tbtestimonial_company', 'meta_value' => 'Company Name Here' ) );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.
Example:
/** * 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' );Well I appreciate you sharing your opinion and I’m sorry that you feel way. I knew it would offend some people before adding but that is why there an option to disable it if you don’t want it up there.
I offer the plugin to you for free. If a little icon bothers you then hey you’re free to make the switch. I don’t mean to be rude but there are plenty of other premium testimonial plugins that don’t even compare to TB-Testimonials.
I put in TBar to help me build my business and make it easy for people to get in touch with me regarding the services that I offer. Times are tough ;/
Also, here’s how you would use those added template tags to do the pagination
{% if paged %} <p>Testimonials Page <em>{{ paged }}</em></p> <div id="testimonials-page-{{ paged }}"> {% for testimonial in testimonials %} <p>{{ testimonial.post_title }}</p> {% endfor %} </div> <div class="testimonial-pagination"> {% if prev_testimonial_link %} <p class="l"><a href="{{ prev_testimonial_link }}">Prev</a></p> {% endif %} {% if next_testimonial_link %} <p class="r"><a href="{{ next_testimonial_link }}">Next</a></p> {% endif %} </div> {% endif %}Jan, consider it added. Can’t promise which version, but it’s on the long list. Also you might be interested in some ajax pagination I put together for another user, you can find it here http://pastebin.com/CaaKV5Cq
Thanks,
Travis Ballard