Support » Plugin: Staffer » Staff Categories

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Edward R. Jenkins

    (@cardiganmedia)

    Yes, you can use shortcodes for this, by following this format:

    [staffer number=”6″ department=”departmentname”]

    [staffer number=”9″ department=”departmentname”]

    etc.

    That did not work. I pasted it like so “add_shortcode( ‘staffer’, ‘[staffer number=”1″ department=”Executive Management”][staffer number=”9″ department=”Leadership Team”]’ );” and nothing happened.

    Plugin Author Edward R. Jenkins

    (@cardiganmedia)

    That’s not how to do it.

    If you’re doing it from within a page or post, just follow the example I posted.

    If you’re doing from within a template file, you’ll need to echo it and wrap it in do_shortcode.

    http://codex.wordpress.org/Function_Reference/do_shortcode

    Okay… I don’t think I explained what I’m asking very well.
    I would like all the profiles on one page, the Staff page. However, on that page I would like a heading that says Executive Management and halfway down the page a heading that saying Leadership Team.
    Like so:

    Staff

    Executive Management
    X x x
    x x x
    Leadership Team
    x x x
    x x x

    Plugin Author Edward R. Jenkins

    (@cardiganmedia)

    To get that type of display, you will need to use a custom page instead of the main “Staff” archive page — i.e. create a new page in WordPress called “Our Staff” or something similar (make sure the slug is not “staff” or whatever your Staffer directory is named.

    In that page, use shortcodes to display your staff members:

    Department Name:

    [staffer number=”9″ department=”departmentname”]

    Second Department Name:

    [staffer number=”9″ department=”departmentname”]

    archive.staff.php is relative easy to customize.
    How to customize page and shortcodes view ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Staff Categories’ is closed to new replies.