Post Expirator
[resolved] Anyway to add template tag for expiration time? (5 posts)

  1. 3x7
    Posted 3 years ago #

    I would like to display the expiration time on the "archive" pages below every post listed...

    It already displays the "publish" time with ".get_the_time( get_option('date_format')", but I want to display expiration time...

    Is there any template tag that I could use?



  2. Carolyn
    Posted 3 years ago #

    There's a setting that will add that to the bottom of the post.

    In the Post Expirator settings, enable the post footer. You can configure it to show the full expiration, with time and date, or just the date, or just the time.

  3. 3x7
    Posted 3 years ago #

    I've tried that and it doesn't do the job on "archive" pages...
    I believe it works only on post view page, therefore I would need a php tag or a custom field that has this expiration time in it...

  4. Aaron Axelsen
    Plugin Author

    Posted 3 years ago #

    There is a shortcode - does that help any?

  5. co1inr
    Posted 2 years ago #

    Use the shortcode like this:

    <?php echo do_shortcode('[postexpirator]'); ?>

    Optional attributes are:

    * type - defaults to full - valid options are full,date,time
    * dateformat - format set here will override the value set on the settings page
    * timeformat - format set here will override the value set on the settings page

    ref: https://github.com/openmhealth/omh.website/tree/master/wp-content/plugins/post-expirator


Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.