Support » Plugin: Post Expirator » [Plugin: Post Expirator] Anyway to add template tag for expiration time?

  • Resolved 3×7

    (@3x7)


    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?

    Thanx

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

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

    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…

    Plugin Author Aaron Axelsen

    (@axelseaa)

    There is a shortcode – does that help any?

    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

    HTH

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Post Expirator] Anyway to add template tag for expiration time?’ is closed to new replies.