• Resolved Ivaylo Tinchev



    Thanks for your plugin. Keep up the good work!

    I’m having an issue with the table sorting by a custom date column created by the Advanced Custom Fields plugin. The date is sorted only by the day of month but not by the whole date and time string. The date format is d.m.Y H:i and I am using a few aproaches with code to resolve the issue, as described in your site, but it persists.

    Here is what the wrong result looks like:

    Here is the code I’ve unsuccessfuly used by now:

    add_filter('wc_product_table_custom_field_stored_date_format', function($format, $field) { 
        if ('coursedate' === $field) {
            return '"d.m.Y H:i"';
        return ''; 
    }, 10, 2);
    add_filter( 'wc_product_table_custom_field_is_eu_au_date', function( $is_eu_date, $field ) {
        if ('coursedate' === $field) {
            return true;
        return false;
    }, 10, 2 );

    Both don’t work. Please advise.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Saiful Islam


    Are you using our Product table plugin for your project?
    I am not clear, what did you mean by this comment. Can you Explain more?

    If you don’t want to explain here, you can make a ticket at https://codeastrology.com/support with more details.

    Thanks a lot for your comment.

    Thread Starter Ivaylo Tinchev


    Yes, it’s your product.

    Version 6.0.16 | By CodeAstrology

    I will write to your support.


    Plugin Author Saiful Islam


    Thanks a lot for your comment. I am closing this topic from here. We will discuss over support.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sorting dates’ is closed to new replies.