Two columns with the same custom field
-
Hi,
I am using advanced custom fields and have a field called start_date which is a specific date of a custom post type called “Events”. I used your ‘cac/column/meta/value’ filter in a column called “Event Date” to compare the start_date with today’s date and if the start_date has already past, then I show “Expired” in the column field, otherwise it shows the date of the event. Works great. What I would like to do is create another column that shows the start_date and call it “Start Date” that shows the start_date whether it is past today’s date or not, is there a way to filter the column by label name? Seems that once I modify the start_date custom field using the filter, it changes every time I use it.
So basically, I want to have two columns that use the same custom field, where one is using the above filter and one is not.
The topic ‘Two columns with the same custom field’ is closed to new replies.