Hello -
I am trying to do some PHP in my templates on a Multi-Select custom field. I am running an explode on a Multi-Select custom field. When I try this, I have discovered that the Multi-Select fields do not populate in the template in time for the PHP to process them. Here is an example:
print_r(explode("-",'{staff-group}'));Where my custom field is called {staff-group}. What this outputs is:
Array ( [0] => {staff [1] => group} )As you can see, the PHP is exploding the actual custom field name instead of the custom field values.
I’ve toggled PHP Parsing to Input and Output and the same behavior exists for both. Is this a bug, or am I doing something wrong here?
Thanks in advance.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.