I am trying to retrieve in the “content composer” the categories of projects based on the active language. But i only get the categories off the main language, never on the other.
My code is:
Category
All
$categories = get_categories('taxonomy=jw_portfolio_categories');
if(!empty($categories)){
foreach($categories as $cat){
?><option value="<?php echo $cat->term_id; ?>"><?php echo $cat->name; ?></option><?php
}
}
?>
</select>
Any idea on how to get all the categories or the ones of the active language in the WP backoffice?