Shortcode: [wpsight_listing_teasers]

The listing teasers shortcode is a different way to display a listings archive on a static page (see demo). It shows shorter versions of the listing teasers. These come in handy when you want to provide a way to browse listings faster or display a secondary archive (e.g. featured listings in a sidebar).

Usage

[wpsight_listing_teasers]

Parameters

keyword
Search keyword that required listings need to match.

offer
The offer of the required listings. Can be any of the registered offers (e.g. offer="rent"). Also see wpsight_offers().

[detail]
The query_var of any registered listing detail (also see wpsight_details() – e.g. built_in="2010"). By default the following details are available: bedrooms, bathrooms, plot_size, living_area, terrace, parking, heating, built_in

[taxomoy]
The key of any registered taxonomy of the listing post type (use taxonomy and term slug – e.g. location="marbella"). By default the following taxonomies are available: location, listing-type, feature, listing-category

min
Minimun price that required listings should have. Don’t use currency symbols or thousands separators.

max
Maximum price that required listings should have. Don’t use currency symbols or thousands separators.

offset
Number of listings to displace or pass over.

nr
Number of listings to show per page before pagination applies. Defaults to 10 (WordPress settings).

orderby
Sort retrieved listings by parameter. Defaults to date (post_date). Other options are price, title, name (slug), rand (random).

order
Designates the ascending or descending order of the orderby parameter. Defaults to DESC. Can be ASC.

class
Additional CSS class applied to container wrap. Is empty by default.

orientation
Orientation of the listing teasers. Defaults to horizontal. Can be vertical (e.g. for sidebars).

show_panel
Define whether or not to display the listings panel (displayed before listings). Defaults to false.

show_paging
Define whether or not to display the listings pagination (displayed after listings). Defaults to false.

before
Display some short content (e.g. a special note) right before the shortcode output. Is empty by default.

after
Display some short content (e.g. a special note) right after the shortcode output. Is empty by default.

wrap
HTML tag of the container element of the shortcode. Defaults to div.

Example

[wpsight_listing_teasers nr="6" show_panel="true" show_paging="true"]

Source File

/includes/shortcodes/class-wpsight-shortcode-listing-teasers.php

Was this article helpful? Yes · No