Skip to content
View image.php
<?php
$is_veteran = get_custom_field( 'is_veteran' );
// Assuming the full URL to the image is //domain.com/banners/veteran.png
// if the value of the selection is "veteran" then it would form that full URL
if( ! empty( $is_veteran ) ){
echo "<img src=\"//domain.com/banners/{$is_veteran}.png\"></a>";
}
View functions.php
<?php
// Add your own function to filter the fields
add_filter( 'submit_job_form_fields', 'remove_listify_submit_job_form_fields', 9999999999 );
// This is your function which takes the fields, modifies them, and returns them
// You can see the fields which can be changed here: https://github.com/mikejolley/WP-Job-Manager/blob/master/includes/forms/class-wp-job-manager-form-submit-job.php
function remove_listify_submit_job_form_fields( $fields ) {
if( ! isset( $fields['company'] ) ) return $fields;
View gist:ea0bfa7525c1808e3d0a
<?php
// !!! Don't add the <?php above if you're adding this to the end of your functions.php file !!!
add_filter( 'field_editor_auto_populate_candidate_email', 'auto_populate_candidate_email_field' );
function auto_populate_candidate_email_field( $field_value ){
// If field value is already set (means it was pulled from user meta) then return that value
// or if user is not logged in return whatever $field_value is already set as
if( ! empty( $field_value ) || ! is_user_logged_in() ) return $field_value;
View gist:dc063f2d3101f0d5388c
<?php
$facebook_url = get_custom_field('fb_lbox_custom');
if( $facebook_url ) echo do_shortcode( '[easy-fb-like-box url="' . $facebook_url . '" width="370" height="430" theme="light" faces="true" header="false" posts="true" border="false"]' );
View functions.php
add_filter( 'submit_job_form_fields', 'heynwa_custom_job_fields', 999999999999 );
function heynwa_custom_job_fields( $fields ) {
if ( isset( $fields[ 'company' ][ 'products' ] ) ){
if( isset( $fields['company']['products']['options'] ) && ! empty( $fields['company']['products']['options'] ) ){
$options = $fields['company']['products']['options'];
// To find out the specific ID of the "products" you can either add &debug to the end of the URL when viewing the company fields
View gist:b61c1cf65103daf7cdca
// Because get_object_terms filter was not included until WP 4.2+ we have to use wp_get_object_terms for backwards compatibility.
// Unfortunately this means taxonomies are passed like this: ( 'resume_category', 'resume_skill' ), so we have to remove the quotes,
// and then use explode to convert it into an array of taxonomies.
$tax_array = explode( ", ", str_replace( "'", "", $taxonomies ) );
View content-job_listing.php
<?php global $post; ?>
<li <?php job_listing_class(); ?> data-longitude="<?php echo esc_attr( $post->geolocation_lat ); ?>" data-latitude="<?php echo esc_attr( $post->geolocation_long ); ?>">
<a href="<?php the_job_permalink(); ?>">
<?php the_company_logo(); ?>
<div class="position">
<!-- This is the Job Title -->
<h3><?php the_title(); ?></h3>
<div class="company">
<?php the_company_name( '<strong>', '</strong> ' ); ?>
<?php the_company_tagline( '<span class="tagline">', '</span>' ); ?>
View railgun.conf
# Port to listen on
wan.port = 2408
# Static map of IPs for use in NAT environments
map.file = /etc/railgun/railgun-nat.conf
stderr.file = /var/log/railgun/panic.log
pid.file = /var/run/railgun/railgun.pid
# Log only errors by default
#
View gist:d9a0c34faa08bfda1bfa
<?php
add_filter( 'resume_manager_resume_education_fields', 'my_custom_remove_education_field_admin' );
add_filter( 'submit_resume_form_fields', 'my_custom_remove_education_field_frontend' );
function my_custom_remove_education_field_admin( $fields ){
unset( $fields['qualification'] );
return $fields;
View gist:8dd22c6a3b7472ec3461
<?php
$twitter_username = get_custom_field('company_twitter');
if( ! empty( $twitter_username ) ) {
$clean_twitter = sanitize_text_field( $twitter_username );
// Check for http: or https: in $clean_twitter
if ( $clean_twitter && ! strstr( $clean_twitter, 'http:' ) && ! strstr( $clean_twitter, 'https:' ) ) {
// Check if twitter.com is not in string (means they used username only)
if( ! strstr( $clean_twitter, 'twitter.com' ) ){
$clean_twitter = "https://twitter.com/{$clean_twitter}";
} else {
Something went wrong with that request. Please try again.