Commit 3cc536ac authored by Simon's avatar Simon

Job categories fix

parent 4a371dc6
......@@ -125,19 +125,23 @@ get_header();
$occupationalCategories = get_the_terms( $ID, 'field' );
if (is_array($occupationalCategories)) :
foreach ($occupationalCategories as &$occupationalCategory) :
?>
<meta itemprop="occupationalCategory" content="<?php echo $occupationalCategory->name ; ?>" />
<?php
endforeach;
endif;
$employmentTypes = get_the_terms( $ID, 'type' );
if (is_array($employmentTypes)) :
foreach ($employmentTypes as &$employmentType) :
?>
<meta itemprop="employmentType" content="<?php echo $employmentType->name; ?>" />
<?php
endforeach;
endif;
?>
<ul class="c-categories">
<?php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment