Support » Plugin: List category posts » customfield_orderby with field of type date

  • Resolved mbeckerle

    (@mstaender)


    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:

    1. 01.04.2020
    2. 01.07.2003
    3. 02.11.1998
    4. 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

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.