Display listing expiry date

This topic contains 4 replies, has 3 voices, and was last updated by  Alex Howes 6 years ago.

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

Open Support Ticket
  • Author
    Posts
  • #451414

    Alex Howes
    Expired Member
    Post count: 175

    Hello,

    I’m using GD as a job site. Is there a way I can display the listing expiry date? I realise it’s visible to the owner but I want to display it publicly. It would be great if it was available in sorting options too.

    Thanks,
    Alex

    #451422

    Guust
    Moderator
    Post count: 29970

    In that case you will have to create a date custom field. Then you can search by it too.

    Thanks

    #451780

    Alex Howes
    Expired Member
    Post count: 175

    Do you know how I’d make the custom field be the expiry date of the listing? Obviously this would have to be set when a listing is added or renewed.

    #451827

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Alex,

    Even though its not in the list of fields (in GDv1) you can still get it with

    geodir_get_post_meta($post_id,'expire_date',true);

    Thanks,

    Stiofan

    #452050

    Alex Howes
    Expired Member
    Post count: 175

    Thanks Stiofan. Can I use the geodir_after_save_listing hook to fill this field? Do you know if this hook is called when a listing is renewed?

    Alex

Viewing 5 posts - 1 through 5 (of 5 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