• 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 4 years, 10 months ago by ERA404.
    • This reply was modified 4 years, 10 months ago by ERA404.
    • This reply was modified 4 years, 10 months ago by ERA404.
    • This reply was modified 4 years, 10 months ago by ERA404.
    Thread Starter tpmcelvogue

    (@tpmcelvogue)

    Thanks ERA404. Working fine now and much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Department with Ampersand’ is closed to new replies.