=== TAG Staff List ===
Contributors: kionae
Donate Link: http://nlb-creations.com/donate/
Tags: staff directory
Requires at least: 3.2.0
Requires Plugins: advanced-custom-fields
Tested up to: 7.1.5
Stable tag: 1.6

Easily create a staff directory, with Advanced Custom Fields (required) integration.

== Description ==

This is an add-on for Advanced Custom Fields that lets you easily create a staff directory page.

== Installation ==

1. Upload plugin .zip file to the `/wp-content/plugins/` directory and unzip.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Add new staff under the "Staff Members" menu option.
4. Use the shortcode discussed in the FAQ section to display the code on your site.   

== Frequently Asked Questions ==

= How do I create a staff directory? =
Add your staff members under the "Staff Members" section in the WP dashboard.  Then insert the following shortcode on the page where you would like to display your directory.

`[simple-staff-list]`

You can modify the output by adding the folloing attributes to the shortcode:
	'staff_id' - defaults to null; the id of a single staff member.  If present, the shortcode only displays that staff member.
	'group' - defaults to ''; the slug of the group to display.  If present, only displays staff members in that group.
	'wrap_id' - defaults to ''; CSS ID for the wrapper div of the staff directory
	'wrap_class' - defaults to ''; CSS class for the wrapper div of the staff directory
	'staff_box_class' - defaults to ''; CSS class for the div containing each staff member
	'order' - defaults to 'ASC'; the order in which to display the results.  Uses the menu_order field.
	'image_size' - defaults to 'medium'; The WordPress image size to use (full, medium, thumbnail, etc.)
	'image_width' - defaults to ''; the width in pixels to be applied to the image via CSS
	'show_link' - defaults to true; whether or not to display a link to the staff member's individual page 
	'show_title' => defaults to true; whether or not to display the staff member's title
    'show_phone' => defaults to false; whether or not to display phone number
    'show_email' => defaults to false; whether or not to display email address
    'show_socials' => defaults to false; whether or not to display social media links
    'show_excerpt' => defaults to false; whether or not to display the first 25 words from the staff bio field
    
`[staff-single]`

You can modify the output by adding the folloing attributes to the shortcode:
	'slug' - the URL slug for the Staff Member you wish to display
	'image_size' - defaults to 'medium'; The WordPress image size to use (full, medium, thumbnail, etc.)
	
= How do I change the slug for a staff-member page? =
Click on the Settings in the WordPress backend and navigate to Permalinks.  Enter your new slug into the "Staff Member base" field

= I'm getting a "Page not found" error when I try to visit a staff member's page.  What's wrong? = 

This sometimes happens when first installing the plugin, and occasionally if you have deactivated it and re-activated it.  This issue can be fixed by going to Settings > Permalinks, and clicking the save button to let WordPress know it needs to update its link structure.

== Changelog ==

= 1.6 =
* Verifying Wordpress 7.1.x compatibility
* Verifying PHP 8.4 compatibility
* Clean up of template file
* Address security issues on input fields

= 1.5 =
* Added additional options to the main shortcode.

= 1.4 =
* Added the ability to change the page slug for staff members
* Added a default template file for individual staff pages

= 1.3 =
* Replaced h4 and h5 tags with divs
* Changed the image alts to the staff member's name instead of their title
* Added an image alt the the single staff block shortcode

= 1.2 =
* Fixed some PHP warnings in the shortcode

= 1.1 =
* general code cleanup and documentation

= 1.0 =
* Initial release

== Upgrade Notice ==

= 1.6 =
* Verifying Wordpress 7.1.x compatibility
* Verifying PHP 8.4 compatibility
* Clean up of template file
* Address security issues on input fields

= 1.5 =
* Added additional options to the main shortcode.

= 1.4 =
* Added the ability to change the page slug for staff members
* Added a default template file for individual staff pages

= 1.3 =
* Replaced h4 and h5 tags with divs
* Changed the image alts to the staff member's name instead of their title
* Added an image alt the the single staff block shortcode

= 1.2 =
* Fixed some PHP warnings in the shortcode

= 1.1 =
* general code cleanup and documentation

= 1.0 =
* Initial release