• weslinda

    (@weslinda)


    So we recently upgraded the plugin. We’ve had it in use for quite some time. Our custom code no longer works. There doesn’t seem to be a deep explanation on how to setup the custom template. This is what we currently have in the custom code section.

    [staff_loop]
    <div class=”staff-member”>
    [photo]
    [name_header]
    <h4>[position]</h4>
    [bio_paragraph]
    </div>
    [/staff_loop]

    https://ww.wp.xz.cn/plugins/staff-directory/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter weslinda

    (@weslinda)

    I figured this out. Apparently, upon upgrade the category ids changed.

    Thread Starter weslinda

    (@weslinda)

    One more note on the template conversation. Any way to stop it from adding a paragraph to the “bio paragraph” when it pull that in? I’ve got lists in there for the team members and it doesn’t work well to have that in that wrapping the UL that’s being brought in.

    Plugin Author adamtootle

    (@adamtootle)

    You can use the [bio] template shortcode, which just uses the content straight from the editor for a staff member. The [bio_paragraph] shortcode is basically just [bio] with <p> tags around it.

    Thread Starter weslinda

    (@weslinda)

    Thanks. One more quick question. Would there be a possibility to be able to create templates at the Category level? Or have multiple templates and be able to select one at the category level?

    The reason I ask is that we are looking at using this on a site where we have different “groups” of people we’re showing. Some might have more detailed profiles that we’d want to link to, while other categories would not.

    Plugin Author adamtootle

    (@adamtootle)

    That’s definitely doable. I’d have to think about how to pull it off. My first inclination would be to add it as a parameter to the shortcode, something like [staff-directory cat=3 template=2]. That way you could use multiple shortcodes/templates on a single page.

    Let me think about that and I may shoot to get it added in a few days. I’m currently working on a TinyMCE button that would allow users to generate a shortcode a little easier without having to know the available options. If I can get this done quick enough I’ll add it into that update.

    Thread Starter weslinda

    (@weslinda)

    Really appreciate you jumping back into the plugin and making an effort. Thanks.

    Plugin Author adamtootle

    (@adamtootle)

    No problem!

    Ok I added support for custom templates in the 1.0.0 release. Try that out and let me know if it works for you. There’s also a new TinyMCE button to generate a [staff-directory] shortcode with options. That button will allow you to select a custom template that will override the default.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Custom Template Issues’ is closed to new replies.