Starting with BNE Testimonials Pro version 2.7. API platforms such as Facebook, Yelp, Google, etc. can now be shown using a single shortcode instead of multiple ones. In addition, the order can be set to random using the orderby="rand"
option. This is a great benefit for those that use more than one review website and want to show all of them together within a single slider, masonry grid, or list.
Therefore, instead of this: (two individual displays)
Shortcode Usage
To show a mixture of different API's, you would build your API shortcode the same as before, but include this time include the additional source
and id
. There is not a limit to the number of API's you can mix together. Don't forget to increase the limit option if needed. API rules still apply though with Yelp only providing 3 reviews, Google and Yellow Pages providing 5 reviews and Facebook up to 200 reviews.
An important note here... Make sure that each reference to the source and id are separated by a ,
(comma). Also that the order of both match each other.
Example: source="yelp,facebook,google"
Example:Β id="yelp_page_id,facebook_page_id,google_id"
[bne_testimonials_api layout="thumbs" alignment="center" image_style="circle" source="yelp,facebook" id="yelp_page_id,facebook_page_id" orderby="rand"]
What about Badges?
And of course, it works with the Badge shortcode as well. The below badge is using the API to pull in the total and rating of Yelp, Facebook, and Google for this business and calculating the combined total and average. Before you would have had to do this manually or display each one individually using the API.
Since the badge will be a collection of review stats from different review sites, source branding will be set to the default styles. In addition, the heading, image icon, and link will need to be set manually if you would like them displayed.
[bne_testimonials_badge api="true" source="yelp,facebook,google" id="yelp_id,facebook_id,google_place_id" image="path_to_image.jpg" heading="Your Business Name"]