Support » Plugin: Simple Staff List » Post Nominal Field

  • Resolved Leanne

    (@norlink)


    I set up this plugin a few years ago and we used the Post Nominal field. We’ve got new staff members to add and that field is no longer there.

    Is there a way to get this back? My client really wants to use that to show that on their staff member page.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Brett Shumaker

    (@brettshumaker)

    Hello Leanne –
    I’m pretty sure I’ve never included a Post Nominal field in the plugin. Are you sure you hadn’t customized it at some point to add a new field?

    Do you have a url where I can view the existing staff list with the post nominal letters for the staff?

    Thanks!

    It would have been probably in late 2014 when I first installed the plugin.

    I’m using this in single-staff-member.php
    global $post;
    $custom = get_post_custom();
    $name = get_the_title();
    $name_slug = basename(get_permalink());
    $title = $custom[“_staff_member_title”][0];
    $postnominal = $custom[“_staff_member_postnominal”][0];
    $email = $custom[“_staff_member_email”][0];
    $phone = $custom[“_staff_member_phone”][0];
    $fax = $custom[“_staff_member_fax”][0];
    $bio = $custom[“_staff_member_bio”][0];
    $prof = $custom[“_staff_member_prof”][0];
    $fb_url = $custom[“_staff_member_fb”][0];
    $tw_url = ‘http://www.twitter.com/’ . $custom[“_staff_member_tw”][0];
    $li_url = $custom[“_staff_member_li”][0];

    It’s being used here: https://www.jonesins.com/staff-members/jordan-zuke/
    In the grey box, the BA, B.Ed next to his name.

    Plugin Author Brett Shumaker

    (@brettshumaker)

    Ok, yeah it looks like at some point someone had made a custom metabox for a postnominal field on the Staff Member post type. I don’t have any specific code examples on how to add a custom metabox, but you’d use add_meta_box. But if you add one to the Staff Member post type, and save your input with something like update_post_meta( '_staff_member_postnominal', $value ); inside the ‘save_post’ hook, it should work again.

    Does that help?

    I’ll try that out! Thanks for the help Brett. I’m wishing I took better notes when I set this up years ago.

    Plugin Author Brett Shumaker

    (@brettshumaker)

    @norlink

    I just had a little bit of time so I made a little custom plugin that adds that post nominal field and makes it available for you to use on the single staff member page.

    https://gist.github.com/brettshumaker/84a206344961fb7a2206a94dee170029

    I’ve tested this and it should work just fine. It will not, however, make your custom field available for output in the [simple-staff-list] shortcode output.

    THANK YOU!! That worked beautifully.

    Plugin Author Brett Shumaker

    (@brettshumaker)

    Glad I could help! 👍

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post Nominal Field’ is closed to new replies.