Skip to content

Instantly share code, notes, and snippets.

@purethemes
Created April 16, 2017 22:44
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 purethemes/c4b6327933b8c0bb800418c1511c42a8 to your computer and use it in GitHub Desktop.
Save purethemes/c4b6327933b8c0bb800418c1511c42a8 to your computer and use it in GitHub Desktop.
<h1><?php the_title(); ?>
<?php if ( get_option( 'job_manager_enable_types' ) ) {
$types = get_the_terms( $post->ID, 'job_listing_type' );
if ( $types && ! is_wp_error( $types ) ) :
foreach ( $types as $type ) { ?>
<span class="job-type <?php echo sanitize_title( $type->slug ); ?>"><?php echo $type->name; ?></span>
<?php }
endif;?>
<?php } ?>
<?php if(workscout_newly_posted()) { echo '<span class="new_job">'.esc_html__('NEW','workscout').'</span>'; } ?>
</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment