‘tool_tag’,
‘hide_empty’ => false,
‘meta_query’ => [
[
‘key’ => ‘_active’,
‘value’ => ‘1’,
],
],
‘orderby’ => ‘meta_value_num’,
‘meta_key’ => ‘_order’,
‘order’ => ‘ASC’,
];
$terms = get_terms($args);
$exclude = explode(“,”, “tables,figures,pdf”);
foreach($terms as $term):
if(in_array($term->slug, $exclude)) continue;
$term_meta = get_term_meta($term->term_id);
if(isset($term_meta[“_enabled”]) && $term_meta[“_enabled”][0] == 1){
$caption = get_term_meta($term->term_id, “_caption”, true);
if($caption){
$caption = ‘
‘.$caption.’
‘;
}else{
$caption = “”;
}
echo ‘
‘;
}else{
echo ‘
‘;
}
endforeach;
?>
/s’, ”, $content);
$block_start = strpos($content, ‘‘);
if($block_start !== FALSE){
$block_end = strpos($content, ‘‘)+strlen(‘‘);
$content = substr_replace($content, “”, $block_start, $block_end-$block_start);
}
echo $content;
?>
/s’, ”, $content);
$block_start = strpos($content, ‘‘);
$_content = “”;
if($block_start !== FALSE){
$block_end = strpos($content, ‘‘)+strlen(‘‘);
$_content .= substr($content, $block_start, $block_end-$block_start);
}
echo $_content;
?>