Home Forums Support TBTestimonials custom widget for single testimonial

custom widget for single testimonial

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  Travis Ballard 4 years, 4 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
February 15, 2013 at 3:17 pm #674

bluej
Participant
Post count: 2

Love the custom post type for testimonials – yes it’s the best way.

I need a widget that lets me put 1 testimonial by id in the sidebar – no animation.

I would love to even code this myself if you could suggest how — Any ideas?

Thanks!

February 15, 2013 at 3:42 pm #676

Travis Ballard
Keymaster
Post count: 34

What I would do is take advantage of the order-by options in the included widget and set it to order by “Menu Order” and then set the order to ‘DESC’ so that it shows the higher number first.

After you have the widget set up, you can set the order parameter in the testimonial you want displayed to like 99 or something. New testimonials will default with an order of 0 so it will never be overwritten by adding a new one.

If that’s not an option you can always create a custom template that reads from a new tag that holds the post data for the testimonial of your choice.

Hope that helps,
Travis Ballard

February 15, 2013 at 4:36 pm #677

bluej
Participant
Post count: 2

Thanks — I really appreciate your fast response.

I really want something much simpler that my clients can use.

(And I’m afraid I don’t follow you!)

I would love a widget that would have a drop-down of the testimonials and then let me pick one.  Displayed with no animation….  Hmmm

If you have any advice I’d love it.  Thanks again for making a custom post type for testimonials.

February 15, 2013 at 5:32 pm #678

Travis Ballard
Keymaster
Post count: 34

Here’s a slimmed down version of the widget you can use, just put it in your plugins folder and then activate the new plugin. It will add a new widget you can use.

https://gist.github.com/TravisBallard/4961924/download

Thanks,Travis Ballard

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

You must be logged in to reply to this topic.