• Resolved mktdom

    (@mktdom)


    Hi,

    I would like to display the expire date instead of publish date

    I found this closed topic on this support forum https://ww.wp.xz.cn/support/topic/display-expiry-date/ but i didn’t know how to make the change

    I know that it is in this file “content-single-job-listing-meta.php”

    
    <ul class="job-listing-meta meta">
    	<?php do_action( 'single_job_listing_meta_start' ); ?>
    
    	<?php if ( get_option( 'job_manager_enable_types' ) ) { ?>
    		<?php $types = wpjm_get_the_job_types(); ?>
    		<?php if ( ! empty( $types ) ) : foreach ( $types as $type ) : ?>
    
    			<li class="job-type <?php echo esc_attr( sanitize_title( $type->slug ) ); ?>"><?php echo esc_html( $type->name ); ?></li>
    
    		<?php endforeach; endif; ?>
    	<?php } ?>
    
    	<li class="location"><?php the_job_location(); ?></li>
    
    	<li class="date-posted"><?php the_job_publish_date(); ?></li>
    
    	<!-- IT SHOULD BE HERE  -->
    
    	<?php if ( is_position_filled() ) : ?>
    		<li class="position-filled"><?php _e( 'This position has been filled', 'wp-job-manager' ); ?></li>
    	<?php elseif ( ! candidates_can_apply() && 'preview' !== $post->post_status ) : ?>
    		<li class="listing-expired"><?php _e( 'Applications have closed', 'wp-job-manager' ); ?></li>
    	<?php endif; ?>
    
    	<?php do_action( 'single_job_listing_meta_end' ); ?>
    </ul>
    

    Thanks

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Display Expiry Date’ is closed to new replies.