Skip to main content

List Locations

[list-locations parameters]

Parameters

Parameter Description Required Values Default
id Display a specific post id Any WordPress post ID none
category Display from a specific category Any WordPress category
category_in Include a category Any WordPress category ID. Can include multiple separated by commas.
category_not_in Exclude a category Any WordPress category ID. Can include multiple separated by commas.
tag_in Include a tag Any WordPress tag ID or slug. Can include multiple separated by commas.
tag_not_in Exclude a tag Any WordPress tag ID or slug. Can include multiple separated by commas.
order_by How to arrange posts menu_order, title (alpha order), date (date created), modified (datelast modified), rand (random), title_last_word menu_order
order How to order posts ASC (ascending), DESC (descending) ASC
number Limit to a set number of posts any number all posts
view How to display the posts summary, complete, list, grid, carousel summary
excerpt how many words to display from content any number 50
photo_position Position of photo left, right, left-wrap, right-wrap, inline
photo_shape What shape to apply to the feature image photo, wide, rectangle, square, circle, unmodified photo
photo_maxwidth The maximum width of the photo any number with unit (i.e. 200px) none
align Align of content left, center, right none
readmore_style Style of ‘Read More’ link button none
title_tag Tag to be used for post title h1,h2,h3,h4,h5,h6 h2
title_size Text size of title any number with unit (i.e. 1.5em) none
title_color Color of title Any hex or color name none
content_size Text size of content any number with unit (i.e. 1.5em) none
content_color Color of content Any hex or color name none
map_height Height of map any number with unit (i.e. 600px) 300px
hours_align Align the day/hours content left, center, right
hours_orientation Align the day/hours horizontally or vertically horizontal, vertical horizontal
hours_columns Display days in columns 1,2,3,4 1
hours_border_divider How to display borders all, bottom, none none
hours_border_color Border color any rgba/hex color
elements Override the default elements and specify your own list of elements title, photo, excerpt, content, contactdetails, address, directions, emergencies, map, hours, paymentinfo, socialicons, link none
elements_headings When using the elements feature above, by default the headings are hidden. Set this to ‘show’ to display the headings. show, hide

For view=’grid’ only

Parameter Description Required Values Default
grid_columns Arrange posts in this number of columns 2,3,4,5 2

For view=’carousel’ only

Parameter Description Required Values Default
carousel_pagination Show pagination dots no,yes yes
carousel_autoplay Autoplay carousel no,yes no
carousel_delay How long to pause on each post any number (seconds) 10
carousel_transition Transition type fade,horizontal,vertical,none horizontal

Elements example:

[list-locations view='grid' elements='address,directions,socialicons']

The above shortcode will list the locations in a grid, and the elements pulled from each post will be (and only be) the address, directions, and socialicons.