Skip to content

Instantly share code, notes, and snippets.

@tripflex
Created January 20, 2015 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tripflex/55a67f7d05a09f04d772 to your computer and use it in GitHub Desktop.
Save tripflex/55a67f7d05a09f04d772 to your computer and use it in GitHub Desktop.
<div class="single_job_listing" itemscope itemtype="http://schema.org/JobPosting">
<meta itemprop="title" content="<?php echo esc_attr( $post->post_title ); ?>" />
<?php if ( $post->post_status == 'expired' ) : ?>
<div class="job-manager-info"><?php _e( 'This listing has expired', 'wp-job-manager' ); ?></div>
<?php else : ?>
<?php
/**
* single_job_listing_start hook
*
* @hooked job_listing_meta_display - 20
* @hooked job_listing_company_display - 30
*/
do_action( 'single_job_listing_start' );
?>
<div class="job_description" itemprop="description">
<?php echo apply_filters( 'the_job_description', get_the_content() ); ?>
</div>
<?php
/**
* single_job_listing_end hook
*/
do_action( 'single_job_listing_end' );
?>
<?php if ( ! is_position_filled() && $post->post_status !== 'preview' ) : ?>
<?php get_job_manager_template( 'job-application.php' ); ?>
<?php endif; ?>
<?php endif; ?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment