Skip to content

Instantly share code, notes, and snippets.

@imfaisalkh
Created July 25, 2019 22:47
Show Gist options
  • Select an option

  • Save imfaisalkh/105c08176e6847c851f24315d89b4673 to your computer and use it in GitHub Desktop.

Select an option

Save imfaisalkh/105c08176e6847c851f24315d89b4673 to your computer and use it in GitHub Desktop.
Capstone - Append Job ID Meta Value
<?php
#-----------------------------------------------------------------#
# Append Job ID Meta Value
#-----------------------------------------------------------------#
function job_id_meta() {
echo '<li class="meta-field job-id-meta">';
echo '<img class="icon svg-icon" src="'. esc_url( get_template_directory_uri() .'/images/salary-icon.svg') .'" alt="'. esc_html__('Job ID', 'capstone') .'">';
echo '<label class="title">'. esc_html__('Job ID', 'capstone') .':</label>';
echo '<span class="value">'. get_the_ID() .'</span>';
echo '</li>';
}
add_action('single_job_listing_meta_start', 'job_id_meta');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment