Shortcodes

WordPress Plugin Staff List – Options – Shortcodes

To add staff list to any page or post – just insert a shortcode.

How to publish a Staff List

  • Go to Template Options > Shortcodes
  • Copy Staff Page shortcode.
  • Create a new page.
  • Paste the shortcode into page content editor.
  • Save the page.
  • Open the newly created page.

Basic Shortcodes

Shows all staff members linked to a template.
Each layout type has its own shortcode.

Shortcode Options

AJAX
Add ajax option to set up partial page refresh for pagination and filtering.
Category Filter
To filter records by single or multiple categories.
Master Option
You can use different templates with the same set of staff member records.
master=”5484″ source of data (template ID).
id=”6336″ layout template (template ID).
Random Option
Displays staff list members in a random order.
Use top option to limit the number of records.
Paging is not supported with random option.
Sort Order
Records can be returned in ascending or descending order (ASC or DESC).
ASC is the default. See: Sort Order
Single Staff Member
You can show a single staff member.
This option is not related to a Single Page.
Single Page

Staff Page – Category Filter

To display subset of records filtered by a category or categories:
  • Go to Template Options > Shortcodes
  • Copy Staff Page Shortcode.
  • Create a new page.
  • Paste the shortcode into page content editor.
  • Add category filter category="slug". Replace slug with your category slug.

Shortcode – Master Option

You can have multiple templates with the same set of staff member records.

  1. Create a template. This is going to be your MASTER template.
  2. Add staff members.
  3. There is no template type: master. Any template that has set of staff members attached to it can be used as a master template.
  4. Create another template. This is going to be your LAYOUT template.
  5. Instead of creating from scratch use Duplicate option.
  6. Do not add any staff member records to this template.
  7. Add fields to the layout template.
  8. Field IDs and datatypes must much the master template.
  9. You don’t have to add all fields, just the one you need.
  10. You’ll use the master template to add, delete or update staff member records.

To display the LAYOUT template, add option master to the shortcode.

master-shortcode