Created
July 25, 2019 22:47
-
-
Save imfaisalkh/105c08176e6847c851f24315d89b4673 to your computer and use it in GitHub Desktop.
Capstone - Append Job ID Meta Value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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