Support » Plugin: StaffList » Department with Ampersand

  • Resolved tpmcelvogue

    (@tpmcelvogue)


    Hi,
    I am trying to use the shortcode with a department name that has an ampersand (&) in the name but it isn’t showing any records. Do I need to treat the ampersand differently by escaping it in some way?

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

    (@era404)

    Hello @tpmcelvogue

    Version 2.7.1 should resolve this issue.
    The WordPress editor (for good reason) rewrites ampersands (&) to their HTML equivalent (&). StaffList was using this value to limit results to the subset, which wouldn’t match properly.

    StaffList now does an entity decode before querying for the subset.
    Tested with [stafflist subset="department:r&d"] on staging environment without issue.

    Thank you for bring that to our attention.

    ERA404

    • This reply was modified 5 months, 3 weeks ago by ERA404.
    • This reply was modified 5 months, 3 weeks ago by ERA404.
    • This reply was modified 5 months, 3 weeks ago by ERA404.
    • This reply was modified 5 months, 3 weeks ago by ERA404.

    Thanks ERA404. Working fine now and much appreciated.

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