diff --git a/includes/class-wp-job-manager-post-types.php b/includes/class-wp-job-manager-post-types.php index 15dfc9fa8..1bf38fd73 100644 --- a/includes/class-wp-job-manager-post-types.php +++ b/includes/class-wp-job-manager-post-types.php @@ -847,11 +847,12 @@ public function job_feed_namespace() { * Adds custom data to the job feed. */ public function job_feed_item() { - $post_id = get_the_ID(); - $location = get_the_job_location( $post_id ); - $company = get_the_company_name( $post_id ); - $job_types = wpjm_get_the_job_types( $post_id ); - $salary = get_the_job_salary( $post_id ); + $post_id = get_the_ID(); + $location = get_the_job_location( $post_id ); + $company = get_the_company_name( $post_id ); + $job_types = wpjm_get_the_job_types( $post_id ); + $job_categories = wpjm_get_the_job_categories( $post_id ); + $salary = get_the_job_salary( $post_id ); if ( $location ) { echo '\n"; @@ -860,6 +861,10 @@ public function job_feed_item() { $job_types_names = implode( ', ', wp_list_pluck( $job_types, 'name' ) ); echo '\n"; } + if ( ! empty( $job_categories ) ) { + $job_categories_names = implode( ', ', wp_list_pluck( $job_categories, 'name' ) ); + echo '\n"; + } if ( $company ) { echo '\n"; }