[login_form]
[listeo_login_form]
[listeo_login]
[listeo_registration]
[listings]
The [listings]
shortcode is used to display listings on a page. It has several attributes that you can use to customize the output. Here’s a brief documentation for each attribute:
style
: Determines the style of the listings. Can be ‘list’, ‘grid’, or ‘grid-compact’. Default is ‘list’.layout_switch
: If set to ‘on’, it allows users to switch between different layout styles. Default is ‘off’.list_top_buttons
: Determines which buttons to display at the top of the listings. Options are ‘filters’, ‘order’, ‘layout’, and ‘radius’. You can use a pipe ‘|’ to separate multiple options. Default is ‘filters|order|layout|radius’.per_page
: The number of listings to display per page. Default is the value of ‘listeo_listings_per_page’ option, or 10 if that option is not set.orderby
: Determines how to sort the listings. Default is empty.order
: Determines the order of the listings. Can be ‘ASC’ for ascending order or ‘DESC’ for descending order. Default is empty.keyword
: A keyword to filter the listings. Default is empty.location
: A location to filter the listings. Default is empty.tax-listing_category
: Provide a slug of category you want to display, you can set more than one, separate it by coma.tax-region
: Provide a slug of region you want to display, you can set more than one, separate it by coma.tax-service_category
: Provide a slug of service category you want to display, you can set more than one, separate it by coma. The same works for event_category, rental_category, etcsearch_radius
: The radius to use for location-based searches. Default is empty.radius_type
: The unit of measurement for the search radius. Default is empty.featured
: If set to ‘true’, only featured listings are shown. If set to ‘false’, featured listings are hidden. If null, both featured and non-featured listings are shown. Default is null.custom_class
: A custom CSS class to add to the listings. Default is empty.grid_columns
: The number of columns to use in grid style. Default is ‘2’.in_rows
: Determines whether to display the listings in rows. Default is empty.ajax_browsing
: If set to ‘on’, enables AJAX browsing for the listings. Default is the value of ‘listeo_ajax_browsing’ option.from_vs
: This attribute is used internally and should not be set manually.
Here’s an example of how to use the shortcode with some of these attributes:
This will display the listings in a grid style, showing 5 listings per page, ordered by date in descending order.
[listeo_search_form]
The [listeo_search_form]
shortcode is used to display a search form on a page. This form allows users to search through listings. Here’s a brief documentation for how to use this shortcode based on the output_search_form
function:
The [listeo_search_form]
shortcode accepts several attributes:
source
: Determines the source of the search form. Can be ‘sidebar’, ‘home’, or ‘split’. Default is ‘sidebar’. You can define custom sources by creating new forms in Listeo Editor -> SearchFormswrap_with_form
: If set to ‘yes’, the search form is wrapped with a<form>
tag. Default is ‘yes’.custom_class
: A custom CSS class to add to the search form. Default is empty.action
: The action attribute for the form. Default is empty.more_trigger
: If set to ‘yes’, a button for additional features is displayed. Default is ‘yes’.more_text_open
: The text for the ‘open’ state of the additional features button. Default is ‘Additional Features’.more_text_close
: The text for the ‘close’ state of the additional features button. Default is ‘Additional Features’.more_custom_class
: A custom CSS class to add to the additional features button. Default is ‘margin-bottom-10 margin-top-30’.more_trigger_style
: The style of the additional features button. Default is ‘relative’.ajax_browsing
: If set to ‘on’, enables AJAX browsing for the search form. Default is the value of ‘listeo_ajax_browsing’ option.dynamic_filters
: If set to ‘on’, enables dynamic filters for the search form. Default is ‘off’ if ‘listeo_dynamic_features’ option is not set to ‘on’.dynamic_taxonomies
: If set to ‘on’, enables dynamic taxonomies for the search form. Default is ‘off’ if ‘listeo_dynamic_taxonomies’ option is not set to ‘on’.
Here’s an example of how to use the shortcode with some of these attributes: