Export listings created date & last modified date & expiry date

This topic contains 5 replies, has 4 voices, and was last updated by  vivek 5 years, 5 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #494113

    vivek
    Full Member
    Post count: 246

    Hi, How can i export these dates for all my listings, in CSV?

    The CPT list page shows the published date (is that the first created date?) and the expiry date, but not the last modified date – how can i get that also?

    And how can i export that page?

    Thanks very much!

    Vivek

    #494191

    Kor
    Moderator
    Post count: 16516

    Hi Vivek,

    Thanks for your post. Exporting “last modified date” isn’t something that is currently possible out of the box. But I forward this to a developer for a second opinion.

    #494196

    vivek
    Full Member
    Post count: 246

    Ok- and how can i export created date?

    #494201

    Paolo
    Site Admin
    Post count: 31206

    post_date is a default column of the CSV file when you export it.

    Thanks

    #494399

    Kiran
    Moderator
    Post count: 7069

    Hi Vivek,

    Try following PHP snippet to export post modified date.

    
    
    function gd_snippet_240619_export_posts_columns( $columns, $post_type ) {
    	global $wpdb;
    
    	$columns[] = "{$wpdb->posts}.post_modified";
    
    	return $columns;
    }
    add_filter( 'geodir_get_export_posts_columns', 'gd_snippet_240619_export_posts_columns', 10, 2 );

    Regards,
    Kiran

    #494410

    vivek
    Full Member
    Post count: 246

    Thanks very much, Paolo & Kiran!

Viewing 6 posts - 1 through 6 (of 6 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount