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

To modify an output, add shortcode options.
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
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″ is the source of data.
id=”6336″ is the template (layout).
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

Staff members filtered by a category.
  • Go to Tempate Options > Shortcodes
  • Copy shortcode: Staff Page – Category Filter.
  • Create a new page.
  • Paste the shortcode into page content editor.
  • Replace the word slug with your category slug.
  • Save the page.
  • Open the newly created page.
Example:

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