Skip to content

Taxonomy admin cols meta_key date_format #191

@epigeyre

Description

@epigeyre

Hi,

I have an acf field on every term of a custom taxonomy. This ACF field contains a date but when I use

'admin_cols' => array(
    'week_start' => array(
    'title' => 'Date de début',
    'meta_key' => 'week_start',
    'date_format' => 'd/m/Y',
),
)

The date doesn't get formatted correctly. I've check the value returned without the date_format and it's something like 20220214.

Now if I go to extended-cpts/src/TaxonomyAdmin.php and add an strtotime() 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions