Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter lauralantz

    (@lauralantz)

    When a plugin adds new user roles using WordPress’ built-in hooks, that should work. But let me know nonetheless.

    WP Team List and WPFront User Role Editor are playing together beautifully. I’ve created an “Organizer” role with the same permissions as Author and using the shortcode [rplus_team_list role=”Organizer”] gives exactly what I’d want. The only hiccup I’m running into is that I’d like to list my role as “Organizer, Webmaster” or “Organizer/Webmaster” …something along those lines. So I’ve tried creating a role of that name, experimenting with different variants, and I haven’t yet found one that WP Team List will display. So far I’ve tried [rplus_team_list role=”Organizer, Webmaster”], [rplus_team_list role=”Organizer / Webmaster”], [rplus_team_list role=”Organizer/Webmaster”], and [rplus_team_list role=”Organizer and Webmaster”]. I’m guessing it’s not liking commas/slashes/spaces in role names… do you think that’s what’s going on?

    Thread Starter lauralantz

    (@lauralantz)

    The shortcode defaults to showing only users with the role Administrator. I think that’s the behaviour you’ve seen. Listing all users should work with role=”all”. I have to admit this isn’t very well described in the readme and we will update this accordingly.

    That works! I’d just assumed the default was to list all users, so it’s good to know that wasn’t an unexpected behaviour. I think at one point I tried putting “All” to list all but since it’s case-sensitive that didn’t work and I was thrown off the scent.

    That really sounds like a bug. Is it only happening when using the shortcode twice in a post?

    Let’s see… nah, i just tried using a single shortcode on the page ([rplus_team_list role=”all” orderby=”last_name” order=”asc”]) and I got one listing for Mark appearing first, followed by Sanda listed twelve times, follow by me listed once. Switching to order=”desc” gives me the same thing in he reverse order: me listed once, followed by Sanda listed twelve times, followed by Mark listed once. For kicks I tried adding another user — an Author named “Stephen Dewhurst.” He also appeared in the listing 12 times (me once, Sanda 12 times, Stephen 12 times, and Mark once). Though, this is weird — I edited his first and last names so they were just “S” and “D,” respectively (username remained the same) and now he only shows up in the list once (me once, Sanda 12 times, Stephen once, Mark once). Make of that what you will!

    Thread Starter lauralantz

    (@lauralantz)

    Ha, whoops… am realizing that attempting to order by “last_name” was silly. Please just ignore that part — ordering by “name” works fine. I’m still puzzled by not being able to list all users with [rplus_team_list] but since the workaround of using a list for each role is working I’m inclined to continue on and experiment to see if I can display custom roles by using WP Team List in conjunction with WPFront User Role Editor.

    Thread Starter lauralantz

    (@lauralantz)

    Hi Pascal — thank you for looking into this! I’ve figured out a workaround but it would still be great to get to the bottom of what’s going on.

    Currently I have three users — myself (an Administrator), and two Authors. Here are the behaviors I’m seeing:

    • When I use shortcode [rplus_team_list], I am the only user who gets listed. Changing other users’ roles to Administrator causes them to show up too, but any users with the Author role are not listed.
    • This part gets really weird… since I currently only have users in Administrator and Author roles, I tried to do a workaround by using shortcode [rplus_team_list role=”Administrator”] followed by shortcode [rplus_team_list role=”Author”]. Initially even using [rplus_team_list role=”Author”] generated a list that showed only Administrators — that’s when I opened this support thread. But then it started working as expected — I have no idea why! So this is the workaround I’m currently using, which you can see in action here: Our Team | Seattle Learning Network.
    • I also tried modifying the shortcodes so users would be ordered by role and then by last name, like so: [rplus_team_list role=”Administrator” orderby=”last_name” order=”desc”]
      [rplus_team_list role=”Author” orderby=”last_name” order=”desc”]. This causes users to be listed 12 times.

    The plugins I have active are Akismet, Contact Form 7, Hide Comment Author Link, Odyno GoogleGroups, Relevanssi, SZ – Google, TablePress, TablePress Extension: Auomatic URL Conversion, The Events Calendar, and WP Team List.

    I’m hoping ultimately to find a way to display custom user roles so I can list people on the team as “Organizers” and “Members” instead of “Authors,” but I figure if there’s already some sort of strange plugin interaction going on it’s a good idea to hold off on that for now.

    Thanks again for your help!

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