Open epigeyre opened 2 years ago
This column type expects either a Unix timestamp or a MySQL datetime string. This might not be documented because to be honest custom columns on taxonomies aren't as frequently used as those on post types.
You can add a function
argument and handle the outputting yourself, otherwise this looks like it needs a fix similar to the one in #187 for post types.
Sortable columns aren't yet supported for taxonomies.
Hi,
I have an acf field on every term of a custom taxonomy. This ACF field contains a date but when I use
The date doesn't get formatted correctly. I've check the value returned without the
date_format
and it's something like20220214
.Now if I go to
extended-cpts/src/TaxonomyAdmin.php
and add anstrtotime()
around the$val
on lines 269 and 271 I have no problems. Is there a reason why this is not already the case?Also, is it possible to make this new column sortable (on the edit-tag screen)?
Thanks for your help!