Support » Plugin: Flamingo » Date Column Offset in CSV Export

  • Hi,

    Thanks for the great plugin.

    I have an export problem: the spreadsheet generated has the date column empty and the actual date data is shifted to the right in another column with no heading. How can I align the date and its data properly?

    I appreciate your time!

    https://wordpress.org/plugins/flamingo/

Viewing 6 replies - 1 through 6 (of 6 total)
  • I need fix this to…

    me too, unfortunately that’s the only field which is exporting now!

    I have a similar issue. The date heading appears in the csv, but the actual date data is one column to the right of the date header column.

    In the flamingo admin.php i did this and it seems to work:

    foreach ( $items as $item ) {
    $row = array();

    foreach ( $labels as $label ) {
    $col = isset( $item->fields[$label] ) ? $item->fields[$label] : get_post_time( ‘c’, true, $item->id );

    if ( is_array( $col ) ) {
    $col = flamingo_array_flatten( $col );
    $col = array_filter( array_map( ‘trim’, $col ) );
    $col = implode( ‘, ‘, $col );
    }

    $row[] = $col;
    }

    //$row[] = get_post_time( ‘c’, true, $item->id );

    echo “\r\n” . flamingo_csv_row( $row );
    }

    exit();

    I begin in php language using. When I opened the admin.php file with Notepad++, I found more than seven hundred lines. Please tell me where to write these lines exactly ?

    I found where to write these lines but the result is not perfect. The date data are in two comlumns, the right one and the wrong one.
    So I prefer to copy and paste in Excel because in case of Flamingo up to date the apexofthecurve solution will be lost.

    Is there somebody who knows how to delete the messages in the Flamingo trash ?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Date Column Offset in CSV Export’ is closed to new replies.