WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
[resolved] Post Expiration Date in Template (5 posts)

  1. StevenCombes
    Member
    Posted 1 year ago #

    Hello. I'm loving this plugin.

    If I wanted to print the post expiration date into the loop in one of my templates, how might I go about that?

    Many thanks!

    Steve

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

  2. ultramalcolm
    Member
    Posted 1 year ago #

    I would like to know how to do this as well.

  3. ultramalcolm
    Member
    Posted 1 year ago #

    It's been months. Is this plugin not supported?

  4. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    This plugin is still supported - there is a shortcode available - does that work?

  5. co1inr
    Member
    Posted 1 year 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

    HTH

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic