WordPress.org

Forums

Post Expirator
Post Expirator : show expiration date if set (2 posts)

  1. lorembolo
    Member
    Posted 1 year ago #

    Hi,
    I'm trying to use the "post expirator" plugin.
    It works, no problem .

    In my template I would like to show the expiration date, but only if it's set .

    If I use the following shortcode, the message apperas even if the post doe not use expiration date.
    <span class='dates'> will expire : " <?php echo do_shortcode( '[postexpirator]') ?></span>

    Is it possible to display this message only when an expiration date has been set?

    Thanks in advance.

    http://wordpress.org/plugins/post-expirator/

  2. PinkishHue
    Member
    Posted 1 year ago #

    Looks like this thread will answer your question (thanks to @Luke Etheridge):

    http://wordpress.org/support/topic/display-expiration-outside-postpage-within-template-files?replies=7

    There is code for displaying the set expiration date OR displaying it like: 'this post expires in X days'

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Expirator
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic