[epl_directory] Shortcode

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.

[epl_directory]

Usage

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 Order

Note: 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

Options

The following options are accepted:

id

specify a specific staff member by post id for output. Options:

[epl_directory id=12345]
limit

specify the number of staff members that are output. The default is 10. For Example, to display 30 staff members:

[epl_directory limit=30]

location

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.

[epl_directory location="sydney"]
tools_top

specify outputting the grid and sort options. Default is off.

[epl_directory tools_top="on"]
tools_bottom

for future use

[epl_directory tools_bottom="off"]
sortby

specify outputting the order of the staff members. Default is sorted by the page order. Options:

  • menu_order
  • date
[epl_directory sortby="date"]
sort_order

specify the order either ASC or DESC. Default DESC. Options:

  • ASC
  • DESC
[epl_directory sort_order="ASC"]
query_object

Internal use only

[epl_directory query_object="off"]

Shortcode Options

'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.