Combine multiple field values into one column on Contact Entries page
This code allows you to combine multiple field values into one single column. For instance if you have multiple event dates you could combine them into a single column named "Event Dates"
Instead of using the custom PHP code below, you could also use a Variable field, setting it to hold {tag1}, {tag2}, {tag3} and using this as your final value to create a single column that displays multiple field values.
Place the below code into your child theme functions.php file.
Edit the Event Date
column name and define your field names e.g. date_1
date_2
date_3
etc. This code will then comma seperate the fields into a single value placing it in a single column on the Contact Entires page.
PreviousRe-sending E-mails after editing entries via Listings for WordPressNextAltering the attachments for E-mails via PHP code for WordPress
Last updated