We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Multi-Select field not parsing on Input or Output

Development and Programming

nstokes's avatar
nstokes
12 posts
15 years ago
nstokes's avatar nstokes

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.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.