Support » Plugins and Hacks » Post Expirator in Template
6 years, 8 months ago
It has another post with the same question, but its status is “resolved”, but there is no answers, so I decided to open another one, with the same text…
I am using the Post Expirator plugin in my blog. I want to display the expiration date in my template, not as shortcode in a post, as it describes.
Can anyone help me with this?
I´ve tryed that:
<?php $expiration = get_post_meta($post->ID, ‘expiration-date’, true); echo $expiration; ?>
But it returns a numeric value…
In fact, the plugin creates a custom field called expiration-date, but its value is something like this: “1265914800”
I cant change it directly, do I think I need to call it on the php template, transforming its format… but I don´t know how to do it.