The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Post Expirator in Template (3 posts)

  1. Cristiano
    Posted 6 years 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...

  2. Cristiano
    Posted 6 years ago #

    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.

  3. Cristiano
    Posted 6 years ago #

    Any help????

Topic Closed

This topic has been closed to new replies.

About this Topic