set('suppress_filters', 0);
if (have_posts()) {
while (have_posts()) {
the_post();
$post_id = get_the_ID();
$categories = [];
$terms = get_the_terms($post_id, 'testimonial_categories');
if (is_array($terms)) {
foreach ($terms as $term) {
/**
* @var WP_Term $term
*/
$categories[] = sprintf('
%s',
get_term_link($term, 'testimonial_categories'), $term->name);
}
}
$text = Wpw::inst()->helpers()->word_excerpt(get_the_content());
$title = get_the_title();
?>