[listing_open] Open for Inspection/Home Open shortcode
All you need to to on a post or page is add the shortcode called [listing_open] to output all your properties that have an open for inspection time. Add this to your posts and be happy that it will never be out of date as it dynamically generates depending on your current inspection schedule.
Easily add a shortcode to a page or post and it will always only show properties that have a current home open so your posts and pages will always be up-to date
The listing_open feature allows you to output your listings on your pages and posts using a simple Shortcode. There are a variety of options available with each Shortcode in Easy Property Listings.
[listing_open]You can output listings by a specific type like this:
UsageThere are several options that may be specified using this syntax:
[listing_open option1="value1" option2="value2"]
You can also print a list of listings in a template like so:
<?php echo do_shortcode('[listing_open post_type="property" limit="50" template="table"]'); ?>
post_type limit template location tools_top tools_bottom sortby sort_order pagination instance_id class
The following options are accepted:
specify which property type to display. The default is any activated listing type you have enabled. The option allows you to output multiple listing types by comma separating them
specify the number of listings that are output. The default is 10. For Example, to display 30 listings:
specify the template to use when outputting listings. The default is the blog view. Options:
specify the location of the listing so you can create a Sydney page and only output listings in that city. The option used is the location slug which works similar to post categories.
specify outputting the grid and sort options. Default is off.
for future use
specify outputting the order of the listings. Default is sorted by date newest first. Default is date. Options:
specify the order either ASC or DESC. Default DESC. Options:
specify outputting the pagination options. Default is on.
specify the shortcode instance when using multiple shortcodes on a page, set the instance to implement separate paging. Default is 1.
specify a wrapper class for the shortcode.