How to pass an array as attribute of shortcode to work properly shortcode parser? August 19, 2022 by Tarik Billa Try… base64_encode(serialize($array)) base64_encode(json_encoe($array)) and reverse decoding in shortcode ofcourse