WordPress.org

Ready to get started?Download WordPress

Forums

Simple Staff List
category selection type (9 posts)

  1. MikeFMHughes
    Member
    Posted 1 year ago #

    Hey looking for some help please!

    Can we add custom field tot Simple Staff List? And how can I set a category selection type list? i.e IT or HR and the category will pull back the staff

    Thanks

    Mike

    http://wordpress.org/extend/plugins/simple-staff-list/

  2. brettshumaker
    Member
    Plugin Author

    Posted 1 year ago #

    For adding your own fields see this post:
    http://wordpress.org/support/topic/more-input-fields?replies=6#post-4114992

    For the "category selection" you would use the "Groups" feature of the plugin. Add a group, for example "HR Group," and then use the shortcode: `[simple-staff-list group="HR Group"]

  3. MikeFMHughes
    Member
    Posted 1 year ago #

    Thanks for coming back to me Brett!

    On the "added custom" fields post, do I need to tell add fields to the database?

    Also on the [simple-staff-list group="HR Group"] is there a way I can have a link that is clickable for each category?

  4. brettshumaker
    Member
    Plugin Author

    Posted 1 year ago #

    "** You'll now have to make sure your new fields get saved when you update your Staff Member. Do this by adding the fields you created to admin-save-data.php after line 54."

    How do you mean clickable? Do you want a link that goes to a specific page with that staff category?

  5. MikeFMHughes
    Member
    Posted 1 year ago #

    Hey Brett! Thanks for coming back once more. I have my first custom field in. More to follow

    Few things -

    have a look here, I can't get the new Custom field on to a new line.

    I tried this

    http://development.scottishpancreasresearch.org/wpcms/?page_id=8

    $accepted_formatted_tags = $default_formatted_tags;
    		$replace_formatted_values = array('<h3 class="staff-member-name">'.$name.'</h3>', '<h4 class="staff-member-position">'.$title.'</h4>', $photo, $email_mailto, $bio_format, '<br/>', $RI);

    For the category's. I wanted to show list of category's on the page, ie HR or IT and you can click on the to goto that group.

    I "tabbed" them off just now and that works too

    Thanks in advance
    Mike

  6. MikeFMHughes
    Member
    Posted 1 year ago #

    Look under HR tab

  7. MikeFMHughes
    Member
    Posted 1 year ago #

    DOh! Got, forgot about the template/ Just the category part now

    [staff_loop]
    <img class="staff-member-photo" src="[staff-photo-url]" alt="[staff-name] : [staff-position]">
    <div class="staff-member-info-wrap">
    [staff-name-formatted]
    [staff-position-formatted]
    [staff-bio-formatted]
    [staff-email-link]
    [staff-RI]
    </div>
    [/staff_loop]

  8. brettshumaker
    Member
    Plugin Author

    Posted 1 year ago #

    Glad you got the custom field part figured out!

    For the links to category part, all you would need to do is create, for example, an "IT" page and place the [simple-staff-list group="IT"] shortcode on that page. Same for your "HR" category. Then on your "Our Members" page, you'll just have links to those other two pages.

    This is the only way to do this right now as I don't have any kind of "Archive" feature built into the plugin.

  9. dkhandu
    Member
    Posted 4 months ago #

    hi brett
    i have added extra field to the plugin( like grade,age etc) but the problem is the data added in the extra field does not show up in the page(user view).....

    Help me....

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic