This file contains 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
add_action( 'job_feed_item' , 'rss_add_company_logo' , 10 , 2); | |
function rss_add_company_logo ( $company_logo ) { | |
$company_logo = get_the_company_logo( $post_id); | |
if ( $company_logo ) { | |
echo '<enclosure type="image/jpeg" url="'. esc_html( $company_logo ) . '"/>'; | |
} | |
} |