Created
February 1, 2019 06:26
-
-
Save yousufansa/c6534e2962ae60ef1f942d705b7e5c11 to your computer and use it in GitHub Desktop.
Jobhunt - Add Job Career Level On Job Listings
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
if ( ! function_exists( 'jh_child_template_job_listing_career_level' ) ) { | |
function jh_child_template_job_listing_career_level() { | |
global $post; | |
if( !empty( $career_level = jobhunt_get_wpjm_taxomony_data( $post, 'job_listing_career_level', false ) ) ) { | |
echo '<div class="job_listing-career_level"><label>' . esc_html__( 'Career Level:', 'jobhunt-child' ) . '</label>' . $career_level . '</div>'; | |
} | |
} | |
} | |
add_action( 'jobhunt_job_listing_title', 'jh_child_template_job_listing_career_level', 75 ); |
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
.job_listing .job_listing-career_level label { | |
margin-bottom: 0; | |
} | |
.job_listing .job_listing-career_level ul { | |
display: inline-block; | |
list-style-type: none; | |
padding-left: 5px; | |
} | |
.job_listing .job_listing-career_level li { | |
display: inline-block; | |
} | |
.job_listing .job_listing-career_level li::after { | |
content:','; | |
padding-right: 4px; | |
} | |
.job_listing .job_listing-career_level li:last-child::after { | |
content: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment