Support » Plugin: Groups » Shortcodes and apostrophes in group names

  • Resolved thoughton

    (@thoughton)


    I have some groups that have special characters in their names (brackets, European accent characters, commas, apostrophes).

    When using a shortcode like this [groups_member group=”Oxford University”] content here [/groups_member]

    This works for the the brackets and accent chars, but fails on groups that have these names:

    King’s College London
    Queen Mary, University of London
    Royal Holloway, University of London

    Is there a way to escape the apostrophes and commas? I’ve tried \ but it doesn’t work. (In my WP user list the King’s College London group is shown as King\’s College London but that doesn’t seem to work in the shortcode.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Kento

    (@proaktion)

    Hi there!

    Thanks for pointing this out, interesting!

    What I figured out:

    – If I use a straight single quote as the apostrophe e.g. “Luigi’s Mansion” as the group name, it doesn’t work with the shortcode [groups_member group="Luigi's Mansion"]...[/groups_member]
    – If I use a slanted single quote, it works. For example: “Mario´s Castle” works with the shortcode [groups_member group="Mario´s Castle"]...[/groups_member]

    What also works is if you input the group ID instead of the name of the group, so if 11 is the ID of the “Luigi’s Mansion” group, then [groups_member group="11"]...[/groups_member] works.

    I’m not sure if we can actually do something about this or it’s a limitation on shortcodes themselves, taking note to investigate it further.

    Cheers

    Thread Starter thoughton

    (@thoughton)

    Thanks for the reply!

    That’s great to find out about the group ID number. That should solve the problem nicely.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.