You can automatically insert addresses into posts, pages, or text widgets by pasting in this shortcode:
The shortcode outputs any addresses you have entered in the Addresses > All Addresses menu. Data from the Addresses menu is output in a structured format that helps with your local SEO.
Arguments tweak how the addresses display. You can add multiple arguments within the same shortcode:
[lxb_ci_shortcode exclude=1985 format="secondary" num_cols=2]
These are the arguments you can add to the shortcode:
Display a single address by specifying an address ID. Find the address post ID, then add it to the id argument:
Addresses can display as three different formats. These options are helpful if you need to display the same address in several different parts of your site:
For example, you may want to display certain fields on your Contact page and other fields in your footer.
- default: This option displays every field you have filled in the Addresses menu.
- primary and secondary: Each format can output distinct address fields, or display fields in different orders. Contact LexBlog support staff to set up these customizable options.
Without a format argument, the shortcode displays the Primary format.
If you add multiple addresses, you may want to display them in columns on a post or page. Specify the number of columns with this argument:
Without the argument, addresses display in a single column.
If you have added a picture for an address with the Featured Image menu, adjust the size with the image_size argument:
Exclude specific addresses by inserting the post IDs. For example, use this argument if you have three addresses saved, but want to display a single address on your Contact page.