customfield_orderby with field of type date
-
Hi,
I am using WordPress 5.7 in combination with version 0.83.1 of your plugin.
My problem: when I use attribute customfield_orderby in combination with a custom field of type date, it uses string sort. The problem is, that I need to sort articles based on a publication date (NOT the date the article was published but a custom field containing a publication date of some newsletter article, which differs of course) and it basically finds this order:
- 01.04.2020
- 01.07.2003
- 02.11.1998
- 05.03.2017
Obviously that is not correct with respect to the date.
I searched for some flag indicating it shall interpret that field as a date but was not able to make it work.My current test tag:
[catlist id=2? template=articles thumbnail=yes force_thumbnail=yes thumbnail_class=press_thmb customfield_orderby=Publizierungsdatum order=asc numberposts=1000]Do you have a hint here or could add an update for “date” types?
Thank’s a lot
- The topic ‘customfield_orderby with field of type date’ is closed to new replies.