This worked for me:
<?php
$terms = get_terms('project-type');
foreach ($terms as $term) {
if(strpos($term->slug, 'sector1-') !== false){
?>
<li data-filter=".<?php echo $term->slug; ?>"><?php echo $term->name; ?>
<?php
}
?>
</li>
<?php } ?>
This worked for me:
<?php
$terms = get_terms('project-type');
foreach ($terms as $term) {
if(strpos($term->slug, 'sector1-') !== false){
?>
<li data-filter=".<?php echo $term->slug; ?>"><?php echo $term->name; ?>
<?php
}
?>
</li>
<?php } ?>