WordPress.org

Support

Support » Plugins and Hacks » Post Expirator in Template

Post Expirator in Template

  • 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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Any help????

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Post Expirator in Template’ is closed to new replies.