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:
UsageThere 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 OrderNote: The order of the options is important so order your options correctly to get the best result.
location location_id limit template
The following options are accepted:
locationspecify 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 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.
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 location profiles. The default is the blog view. 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.