• Hey there

    I am using a custumized template for car dealers, where each car ad is a single post. I installed post expirator and it works smoothly with these “car ads”. But now I would like to add the information of expiration date for each post in the user area, but I cannot find the way.

    I would like to know which code words I should write in php for getting it.

    Any idea

    Thanks

    • This topic was modified 7 years, 8 months ago by adriadg.
Viewing 4 replies - 1 through 4 (of 4 total)
  • You could call this function:
    _scheduleExpiratorEvent($id,$ts,$opts)

    You would pass in the ID of the post, the UTC timestamp of the expiration date, and an associative array of options to specify the settings. If you look through the expirationdate_update_post_meta function it should give you a good idea.

    Best regards, I have the same concern as adriadg (@adriadg) I would like to know more specifically how you solved it if you already did it, thank you.

    Thread Starter adriadg

    (@adriadg)

    Hi,

    Thanks Aaron.

    Ndanielruiz, I am sorry but I cannot help you with that cause I hired a programmer for my site and he has finally developed a customized system that includes this issue.

    Hope you can get it following what Aaron suggests in above lines.

    Best regards
    Adria

    Gracias

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to add post expiration date by code’ is closed to new replies.