The Directory feature allows you to output your staff members on your pages and posts using a simple Shortcode. There are a variety of options available with each Shortcode in Easy Property Listings.
There are several options that may be specified using this syntax:
[epl_directory option1="value1" option2="value2"]
You can also print a list of staff members in a template like so:
<?php echo do_shortcode('[epl_directory limit="50"]'); ?>
Option OrderNote: The order of the options is important so order your options correctly to get the best result.
id limit template location department tools_top tools_bottom sortby sort_order query_object
The following options are accepted:
specify a specific staff member by post id for output. Options:
specify the number of staff members that are output. The default is 10. For Example, to display 30 staff members:
specify the location of the staff member so you have a number of staff members servicing a location you can output staff members from 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 staff members. Default is sorted by the page order. Options:
specify the order either ASC or DESC. Default DESC. Options:
Internal use only
'id' => false, 'limit' => '10', // Number of maximum posts to show 'template' => false, 'location' => '', 'department' => '', 'tools_top' => 'off', // Tools before the loop like Sorter and Grid on or off 'tools_bottom' => 'off', 'sortby' => 'menu_order', // Options: menu_order, date : Default menu_order 'sort_order' => 'ASC', 'query_object' => '' // only for internal use . if provided use it instead of custom query
The order of the options is important with WordPress shortcodes.