Customizing the listings schema markup properties

The following guide will show you how to customize and create a LocalBusiness schema markup. The code loaded into the editor is from the examples provided by Google. The example is also selectable when creating a new schema through Posterno.

Loading listings fields data into the markup code:

Posterno provides a relatively simple way to dynamically load listings data, including the majority of all your custom fields into the schema markup code trough the usage of special "merge tags".

To view the list of all available merge tags, click on the "Available fields" tab. The tab will display a list of all fields with their name and code so that you can copy and paste the field's code within the markup code.

As an example we are now going to load the listing title within the "name" property of the schema markup. Copy the field's code, which in this case is %_listing_title_%, then click on the "Customize properties" tab and paste the code within the "name" property like in the screenshot below:

To understand what each property does, please refer to the schema.org website and search for the type of schema you're adding.

Converting properties from examples to match custom fields:

Some schema properties expect a list of values. The "image" and "openingHoursSpecification" are some of those. When you load a markup from an example, you will need to convert those properties from an array ( list ) to a string ( single value ) so that Posterno can then automatically provide the correct values for the property.

To change the type of a property, click on the settings icon and a dropdown menu will appear from where you can change the type of the property.

After you've changed it's type, you'll see that the "openingHoursSpecification" property value, changes to "undefined". Now you can change it's value and load the "business hours" listing field into there. Click on the "Available fields" tab and find your opening hours field and copy it's code into the "openingHoursSpecification" property value.

Setting up subproperties values:

Some schema properties may have subproperties. For example, the "geo" property has the longitude and latitude subproperties. To setup the values for subproperties, click on the arrow sign " ►" next to the property title to display it's child properties.

You can then dynamically load the latitude and longitude of a listing through the custom fields available in Posterno.