[location_profile] Shortcode
The Location Profile feature allows you to output your location profiles on your pages and posts using a simple Shortcode. There are a variety of options available with each Shortcode in Easy Property Listings.
[location_profile]You can output listings by a specific type like this:
[location_profile location="sorrento"]
Usage
There are several options that may be specified using this syntax:[location_profile option1="value1" option2="value2"]
You can also print a list of listings in a template like so: <?php echo do_shortcode('[location_profile location="sorrento" limit="50" template="full"]'); ?>
Option Order
Note: The order of the options is important so order your options correctly to get the best result.location location_id limit template
Options
The following options are accepted:
location
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.[location_profile location="sydney"]
location_id
specify the location id of the listing so you can create a Sydney page and only output location profiles in that area. The option used is the location profile id which works similar to post categories.
[location_profile location_id="30"]
limit
specify the number of listings that are output. The default is 10. For Example, to display 30 listings:
[location_profile limit="30"]
template
specify the template to use when outputting location profiles. The default is the blog view. Options:
- false
- full
[location_profile template="full"]
Shortcode Options
'location' => "property" // Location slug. Should be a name like sorrento 'location_id' => "" // Location ID 'limit' => "10", // Number of maximum posts to show 'template' => false, // Template can be set to "full" | Default is loop
The order of the options is important with WordPress shortcodes.