WordPress.org

Support

Support » Plugins and Hacks » Admin Columns » [Resolved] [Plugin: Codepress Admin Columns] sorting by custom date field

[Resolved] [Plugin: Codepress Admin Columns] sorting by custom date field

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tobias Schutter

    @tschutter

    Hi Oliver,

    My plugin only supports the date format which is used internally by WordPress. That is ‘Year-month-day hours:minutes:seconds’ all in digits.

    php example:

    // displays the current time in the correct date format
    // to be saved into a custom field for example
    $current_time = date('Y-m-d H:i:s');
    echo $current_time;
    // would result in something like "2012-07-17 21:56:30"

    So in order to have the correct sorting output, you would need to save your dates as such:
    2012-11-02
    2012-08-03
    2012-10-05

    Tobias

    b1

    @oliverspies

    ok, thank you for the reply

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: Codepress Admin Columns] sorting by custom date field’ is closed to new replies.
Skip to toolbar