• Resolved lwyndham

    (@lwyndham)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    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;'; ?>

    Thread Starter lwyndham

    (@lwyndham)

    Worked a treat – I’m very impressed by your excellent support.

    Thanks for your help and the great plugin!!!

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    Great! Feel free to leave a review 🙂

    i have tried this but i cannot see a field called _job_expires. using the following in a template file
    <?php $custom_fields = get_post_custom( $post) ;print_r($custom_fields); ?>

    provides me with

    Array ( [_filled] => Array ( [0] => 0 ) [_featured] => Array ( [0] => 0 ) [_job_title] => Array ( [0] => UK Legal Counsel (Contract Manager and Business Support) ) [_job_location] => Array ( [0] => Woking, United Kingdom ) [_job_description] => Array ( [0] =>

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    It’s only set when a job is published, based on the ‘expirey’ setting (days).

    p.s Please don’t hijack other users threads, the moderators don’t like that.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show Expiry Date’ is closed to new replies.