With the listing teaser shortcode you can display a single listing teaser on an a static page (see demo) or in a sidebar. Please note that this listing will not be included in the listings search etc. You can use this shortcode to display a listing apart from the others (e.g. Featured Property).
Usage
[wpsight_listing_teaser]
Parameters
id (required)
ID of the listing in question. This can be the WPCasa listing ID or the WordPress post ID.
orientation
Orientation of the listing teaser. Defaults to horizontal
. Can be vertical (e.g. for sidebars).
class
Additional CSS class of the container wrap. Is empty
by default.
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_teaser id="ID-30" orientation="vertical"]
Source File
/includes/shortcodes/class-wpsight-shortcode-listing-teaser.php