Skip to content

Instantly share code, notes, and snippets.

@bnecreative
Last active August 4, 2018 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bnecreative/4cd4a579ba875f92005f0f0723e02a4f to your computer and use it in GitHub Desktop.
Save bnecreative/4cd4a579ba875f92005f0f0723e02a4f to your computer and use it in GitHub Desktop.
BNE Testimonials - Add Additional Schema Tags
<?php // Don't Copy this line
/*
* BNE Testimonials Additional Schema Tags
*
* Depending on the schema_type used for what is being reviewed,
* you may want to add additional specific schema tags. For example,
* if using "LocalBusiness", the following would be recommended.
*
* Requires BNE Testimonials Pro v2.8.3+
*/
add_filter( 'bne_testimonials_schema_additional_tags', function() {
// Phone
$tags = '<meta itemprop="telephone" content="445-887-4455">';
// Price Range
$tags .= '<meta itemprop="priceRange" content="$$">';
// Address (Adjust for your specific geo-location)
$tags .= '<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">';
$tags .= '<meta itemprop="streetAddress" content="123 North Columbus Blvd">';
$tags .= '<meta itemprop="addressLocality" content="Los Angeles">';
$tags .= '<meta itemprop="addressRegion" content="CA">';
$tags .= '<meta itemprop="postalCode" content="90045">';
$tags .= '</span>';
return $tags;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment