I have a View that gives me a list of entries separated by a comma. I want the View's shortcode to run - outputting its content - and I need another function to trim the last character from that output. I've tried making a shortcode that should run on the content and trim that last comma, but it does not.
Anyone have a snippet of code they'd care to share?
Best Answer
This is probably what you need: https://formidableforms.com/knowledgebase/conditionals/#kb-comma-separated-list
(I always forget about this one!)
Thanks, Lisa! That's *exactly* what I was looking for!
Please login or Register to submit your answer
Staff replied 2 years ago
Share your PHP code for the shortcode.