Shortcode: [wpsight_list_agents]

This shortcode lets you display a list of registered agents on static page (see demo).

Please notice! This shortcode will only be available when the WPCasa List Agents add-on is active.

Usage

[wpsight_list_agents]

Parameters

nr
Number of agents before paging applies. Defaults to 10.

orderby
Column by which users are ordered. Defaults to ID. For more options please see WP_User_Query.

order
Designates the ascending or descending order of the orderby parameter. Defaults to ASC. Can be DESC.

include
Creates a list with specific users. Separate multiple user IDs by comma. Is emtpy by default.

exclude
Exclude specific users from the list. Separate multiple user IDs by comma. Is emtpy by default.

show_image
Whether or not to show the agent image. Defaults to true. Can be false.

show_phone
Whether or not to show the agent phone. Defaults to true. Can be false.

show_links
Whether or not to show the agent links (website etc.). Defaults to true. Can be false.

show_archive
Whether or not to show the agent archive link. Defaults to true. Can be false.

before
Display some short content (e.g. a special note) right before the shortcode output. Is empty by default.

after
Display some short content (e.g. a special note) right after the shortcode output. Is empty by default.

wrap
HTML tag of the container element of the shortcode. Defaults to div.

Example

Exclude the user IDs 2 and 5 and do not show the My Listings link.

[wpsight_list_agents exclude="2,5" show_archive="false"]

Source File

/wpcasa-list-agents/includes/class-wpsight-list-agents-shortcode.php

Was this article helpful? Yes · No