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

  1. lorembolo
    Posted 2 years ago #

    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.


  2. PinkishHue
    Posted 2 years ago #

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


    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