"Address Shortcode" For Local Business Schema In WordPress
Use the [wpt_schema_local_business_address /] address shortcode to show the address of your business. It uses data from the Local Business Schema.
Display business address on WordPress page using the wpt_schema_local_business_address shortcode
Pre-requisites
- A WordPress website
- WordPress Schema Plugin plugin
Tools
- Computer
Total Duration : 5 minutes
Start your FREE trial. You can cancel your trial anytime within the trial period.
Step 1 - Setup Local Business Schema For Your Website
-
Setup a Local Business Schema profile for your website.
-
For details, refer to https://wptools.app/how-to/how-to-add-local-business-schema-to-wordpress/
Start your FREE trial. You can cancel your trial anytime within the trial period.
Step 2 - Shortcode Documentation
-
[wpt_schema_local_business_address /] shortcode has the following attributes
-
- css_id
- CSS ID of the main wrapper element of the shortcode html.
- Default value is wpt-schema-local-business-address
- css_classes
- CSS classes of the main wrapper element of the shortcode html.
- post_id
- The ID of the post/page whose address
- If you don't use this attribute, the shortcode uses the current page
- oneline
- Whether to show address in single line or multi-line.
- 1 for single line address
- 0 for multi-line address
- Default value is 0
- show_street_address
- Where to show street address or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_locality
- Whether to show locality in the address or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_postal_code
- Whether to show postal code in the address or not
- Set 1 to show and 0 to hide.
- Default value is 1
- show_state
- Whether to show state in the address or not
- Set 1 to show and 0 to hide.
- Default value is 1
- show_country
- Whether to show country in the address or not
- Set 1 to show and 0 to hide.
- Default value is 1
- show_phone
- Whether to show the telephone number or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_fax
- Whether to show the fax number or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_email
- Whether to show the email address or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_url
- Whether to show the URL or not
- Set 1 to show and 0 to hide.
- Default value is 0
- show_vat
- Whether to show the VAT ID or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_tax
- Whether to show TAX ID or not
- Set 1 to show and 0 to hide.
- Default value is 1
- show_business_name
- Whether to show business name or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- show_route
- Whether to show route/driving direction link or not.
- Set 1 to show and 0 to hide.
- Default value is 1
- Sample Usage
- [wpt_schema_local_business_address css_id='wpt-schema-local-business-address' css_classes='' post_id="" oneline="0" show_street_addres="1" show_locality="1" show_postal_code="1" show_state="1" show_country="1" show_phone="1" show_fax="1" show_email="1" show_url="0" show_vat="1" show_tax="1" show_business_name="1" show_route="1" /]
- css_id
Start your FREE trial. You can cancel your trial anytime within the trial period.