WordPress.org

Ready to get started?Download WordPress

Forums

WP Job Manager
[resolved] Show Expiry Date (4 posts)

  1. lwyndham
    Member
    Posted 5 months ago #

    Does anyone know how to display the expiry date for both...

    A) the Single Job Listing template

    B) and for the Job listings [job] in a similar way it appears in the Job dashboard [job_dashboard]

    I image it has something to do with the template tag _job_expires but as of yet I have had no joy getting it to work.

    Any help will be much appreciated.

    Thanks!

    http://wordpress.org/plugins/wp-job-manager/

  2. mikejolley
    Member
    Plugin Author

    Posted 5 months ago #

    If you override the templates using this method https://github.com/mikejolley/WP-Job-Manager/wiki/Template-overrides you can add the date in there yourself.

    <?php echo ( $expires = get_post_meta( $post->ID, '_job_expires', true ) ) ? date_i18n( get_option( 'date_format' ), strtotime( $expires ) ) : '&ndash;'; ?>

  3. lwyndham
    Member
    Posted 5 months ago #

    Worked a treat - I'm very impressed by your excellent support.

    Thanks for your help and the great plugin!!!

  4. mikejolley
    Member
    Plugin Author

    Posted 5 months ago #

    Great! Feel free to leave a review :)

Reply

You must log in to post.

About this Plugin

About this Topic