This page includes all kinds of helpful tips for getting you up and running.
Adding a New Staff Member is easy! There are 3 ways to start adding a new Staff Member
How to Add a New Staff Member
You have a few things to pay attention to:
This is as easy as adding a New Staff Member!
This is as easy as adding a New Staff Member!
[staff_list]
in the page content area that you want them to appear.[staff_list category='the_slug']
, where the value of category
is the slug of the Category you want displayed. You can locate the slugs by looking at the List of Staff Member Categories.[staff_list style='table']
. To display a Grid of All Staff, use the shortcode [staff_list style='grid']
. Please Note: Company Directory Pro is required to gain access to advanced features such as the Grid and Table views.[staff_member id="123"]
, where the value of id is the Staff Member's internal ID (you can get this shortcode by looking at the Staff Member List or the Edit Staff Member screen, inside WordPress.)By default, your Staff Members will appear along with your posts and pages in your search results. You can turn this off by unchecking the box for "Include Staff Members In Search Results" on your options page.
You might also like to show a search for for only your staff. To do that, simply add the shortcode [search_staff_members]
to any page. This will output a search form that uses normal search form template from your theme (searchform.php), but the search will be restricted to only staff members.
Tip: you can also output the staff member search form by calling this PHP function in your code: <?php echo cd_get_staff_search_form(); ?>
. You will probably want to replace all calls to get_search_form() with cd_get_staff_search_form() in your theme's search.php template (if you have one).
Company Directory Pro also includes an advanced search form, which lets your visitors search by first name, last name, and department (i.e., Staff Category).
To output the advanced search form, simply add the shortcode[search_staff_members mode="advanced"]
to any page.
If you'd like to customize the advanced search form, simply copy the file 'search-staff-members-form.php' from our plugins' "templates" folder into the root folder of your theme, and customize it to your liking. The plugin will automatically detect and use your custom template.
Tip: you can also output the advanced search form by calling this PHP function in your code: <?php echo cd_get_staff_search_form(true); ?>
. You will probably want to replace all calls to get_search_form() with cd_get_staff_search_form(true) in your theme's search.php template (if you have one).
Company Directory Pro allows you to Bulk Import and Export your staff members, to save countless hours on data entry!
To import your Staff Members, first you must create a CSV file that contains matching columns to the CSV Headers listed below:
'Full Name','Body','First Name','Last Name','Title','Phone','Email','Address','Website','Categories','Photo'
Place the relevant data into each column, such as the member's name into the Full Name column. The Category column expects a list of Category ID's -- to obtain these, either use the Export tool (if moving from one site to another) or create the Categories ahead of time and manually insert the ID's, as needed.
To import photos, the photo to be imported must be available online (ie, you should be able to visit it in a web-browser.) Simply input the path to the photo, online, in the Photo column of your CSV and the Importer will automatically upload and attach the photo. This feature requires that your WordPress uploads directory be writeable.
To Export your Staff Members, simply click the Export Staff Members button and you're all set!