You can automatically insert addresses into posts, pages, or text widgets by pasting in this shortcode:
[lxb_ci_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.
Shortcode arguments
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:
id
Display a single address by specifying an address ID. Find the address post ID, then add it to the id argument:
[lxb_ci_shortcode id=1995]
format
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:
[lxb_ci_shortcode format="secondary"]
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 the LexBlog Success Team to set up these customizable options.
Without a format argument, the shortcode displays the Primary format.
num_cols
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:
[lxb_ci_shortcode num_cols=2]
Without the argument, addresses display in a single column.
image_size
If you have added a picture for an address with the Featured Image menu, adjust the size with the image_size argument:
[lxb_ci_shortcode image_size=small]
[lxb_ci_shortcode image_size=medium]
[lxb_ci_shortcode image_size=large]
[lxb_ci_shortcode image_size=x_large]
exclude
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.
[lxb_ci_shortcode exclude=1995,1998]