Configure listing structured data with JReviews 6 Early Access
- Thread started
- Last updated
What you’ll achieve
Use native JReviews 6 Early Access settings to map product offers, ratings, addresses, and coordinates to JSON-LD.
My site
Add structured data, a description of your listing that search engines can read alongside the visible page. For example, a product can identify its brand, offer price, and real ratings. A place can identify its address and map coordinates. Schema.org supplies the property names used in these examples.
JReviews 5 and JReviews 6 Legacy use Microdata, Schema.org attributes mixed into the listing HTML. Customizing that markup can require changes across listing templates, review templates, and helpers.
JReviews 6 Early Access generates JSON-LD, a separate block in the page source, from your listing data and administration settings. Visitors still need to see the corresponding facts on the listing itself.
Enable the new listing detail page
This guide is for JReviews 6 with Listing Detail Page enabled in Configuration → Early Access Settings, on Joomla or WordPress. Test the switch on a staging copy with your theme and customizations before enabling it on your live site. See Early Access Features.
The native Setup → Structured Data screen connects your listing fields to Schema.org properties. The examples below use that screen without custom template or helper overrides.
Prepare the listing fields
Use separate Product and Place listing types for these examples. Keep the categories for products and places associated with their corresponding listing type. If your types have different names, use those throughout the setup.
In Setup → Field Groups Manager, create listing field groups named Product facts and Place address, or reuse existing listing groups. In Setup → Custom Fields Manager, create the fields below with Location set to Listing. Select the indicated Field Group on each field. In Setup → Listing Types Manager, associate Product facts with Product and Place address with Place. Assigning a field to a group and associating that group with a listing type are both required.
For the product example, use these fields:
| Label | Field name | Type | Field group | Example input |
|---|---|---|---|---|
| Brand | jr_brand |
Text | Product facts | Acme |
| Price | jr_price |
Decimal | Product facts | 29.95 |
| SKU | jr_sku |
Text | Product facts | 00127 |
The SKU is text so its leading zeros survive. Store the price without a currency symbol or thousands separator. Set Number of decimals to 2 for price output. These are values entered by the product editor, not predefined options. The later examples use pounds sterling, so display the price with Output Format £{fieldtext} or otherwise show GBP beside it. Change the displayed currency and the structured-data currency together if your offers use another currency.
For the place example, use these fields in Place address:
| Label | Field name | Type | Example input |
|---|---|---|---|
| Street address | jr_address |
Text | 233 S Wacker Drive |
| City | jr_city |
Text | Chicago |
| State | jr_state |
Text | Illinois |
| Postal code | jr_postalcode |
Text | 60606 |
| Country | jr_country |
Text | US |
| Latitude | jr_latitude |
Decimal | 41.8789 |
| Longitude | jr_longitude |
Decimal | -87.6359 |
| Phone | jr_phone |
Text | +1 312 555 0101 |
These sample inputs illustrate the data format. Enter the actual address, coordinates, and phone for the place you publish. Use text for postal codes and phone numbers so leading zeros, spaces, and + signs survive. Set coordinate Number of decimals to at least 4 for this example and leave Currency format off. The coordinate output must remain numeric. Do not include degree symbols.
Keep the fields active and publicly readable, with detail-page display enabled. Let the product or place editors write them. Leave the fields optional and without dependencies so you can also test missing values. Editors enter all source values when creating or editing a listing. No customization below fills those fields automatically. Include them in applicable PaidListings plans if used.
Choose product listings to test
Use a published product listing with a visible title, description, photo, and brand. Also keep a product with another brand and an unrated product for testing.
Before changing settings, open the Schema Markup Validator, enter the listing's public URL, and save its results. If it finds more than one description of the same product, check JReviews and any SEO extension that adds structured data. Choose which one will describe the product before adding another copy.
Choose a Schema.org type that describes the actual content. Do not change a person into a product merely to remove a validator warning, and do not invent prices or ratings.
Select Product and connect the brand field
Open Setup → Structured Data, select the product listing type, choose Product, and associate brand.name with your brand field in Settings Map. JReviews then adds the brand under brand.name in the JSON-LD block. Keep the normal Brand field visible on the listing too.
Use Default Property Values for shared values when the property has no field mapping. A field mapping takes precedence; do not rely on the default to replace an empty mapped field. Add extra PropertyValue facts through Additional Properties. Use Additional Schema Types if another Schema.org type also describes the product. The same screen supports SKU and offer data. The v6 Structured Data setup documents these settings.
Map an offer and use the listing's real ratings
Use the Decimal price field jr_price and the Text fields jr_brand and jr_sku from Product facts. On an Acme product, enter price 29.95, brand Acme, and SKU 00127. The price input stays unformatted even when its visible output includes a currency symbol.
On Setup → Structured Data, select that listing type and choose Product. Set these mappings:
| Settings Map property | Listing field |
|---|---|
brand.name |
jr_brand |
sku |
jr_sku |
offers.price |
jr_price |
If every offer uses pounds sterling, leave offers.priceCurrency unmapped and set its Default Property Values entry to GBP. Use your actual currency. For different currencies, create a listing Text field labeled Currency, named jr_currency, in Product facts, with the same permissions and display settings. Have the editor enter an ISO currency code such as GBP or USD for each offer. Map offers.priceCurrency to that field instead of using a shared default.
Keep the price, currency, and brand visible in the normal field output. Save a product with a real offer. Its JSON-LD should contain an Offer with the same price and currency. For a product priced at 29.95 GBP, that part of the output is:
"offers": {
"@type": "Offer",
"price": "29.95",
"priceCurrency": "GBP"
}
JReviews reads the product's user-rating average and review count automatically. It also supplies the configured best and worst ratings. Do not create editable custom fields for those totals. Check a rated product and an unrated product. The rated product should have aggregateRating with its real average, review count, and scale. The unrated product should omit aggregateRating.
Map a place's address and coordinates
For a business location, choose LocalBusiness or a supported subtype that describes the business. Use the Place address fields created above on the Place listing type and map them as follows:
| Settings Map property | Example listing field |
|---|---|
address.streetAddress |
jr_address |
address.addressLocality |
jr_city |
address.addressRegion |
jr_state |
address.postalCode |
jr_postalcode |
address.addressCountry |
jr_country |
geo.latitude |
jr_latitude |
geo.longitude |
jr_longitude |
telephone |
jr_phone |
Use your actual field names. Keep postal codes in a text field so leading zeros survive. Store decimal coordinates, with latitude between -90 and 90 and longitude between -180 and 180.
Save the setup and open a published location. Its JSON-LD should nest the address fields under address with @type: PostalAddress, and both coordinates under geo with @type: GeoCoordinates. The address and map on the visible page should describe the same place. Do not add a separate coordinate object around each individual field.
Also check a location without coordinates. If the location has coordinates, enter both values and verify that they identify the correct place.
For a business that is also a tourist attraction, add https://schema.org/TouristAttraction under Additional Schema Types. This describes the same place. A separate article about that place is a separate entity, not an additional name for the business.
Add custom markup only when the settings cannot produce it
If a property needs a condition that these settings cannot express, a PHP customization can use jreviews:listing:structured_data to change the structured data after JReviews applies your settings. The brand mapping above needs no additional PHP. See the structured-data hook reference.
Remove overlapping markup
If you previously added Schema.org attributes to a field's Output Format, move that field-to-property relationship into Settings Map. Remove the old attributes while keeping the visible field value. For example, replace a brand format of <span itemprop="brand">{fieldtext}</span> with {fieldtext}, or keep a plain span if you need it for styling. Keep the brand.name mapping above.
Check existing Banner fields and SEO extensions for additional Product or place JSON-LD. Disable the overlapping output before publishing the native setup. Preserve unrelated structured data such as breadcrumbs. See Migrating from legacy Microdata.
Inspect output on different listings
Open each published test listing and use your browser's View page source. Find the application/ld+json script in the page head. Confirm that the product's brand, SKU, offer price, and currency match its visible fields. Check a second brand and an unrated product too.
For a place, compare the nested address and both coordinates with the visible address and map. Check a location without coordinates and confirm that no incorrect location appears. A product without a real offer must not claim a price. Leave absent facts empty rather than entering placeholder values.
Confirm that each listing has one matching Product or LocalBusiness description from JReviews, without an overlapping copy from a Banner field or SEO extension. Check the visible title, description, images, rating stars, counts, and review text after enabling the new detail page.
Validate the page and its real reviews
Run the URL through the Schema Markup Validator and Google Rich Results Test. Compare each reported error with the requirements for the feature you actually use. Test the unrated listing too. Do not invent ratings, review counts, prices, or availability to satisfy a test.
Google's structured data policies require truthful markup and do not guarantee a rich result. Its review snippet rules limit eligible types and self-serving business reviews.
Keep field mappings in Setup → Structured Data. If a requirement needs PHP, use the documented structured-data hook rather than changing core files.
Learn more
- Search Engine Optimization (v6)
- Early Access (v6)
- Structured data hook (v6)