diff --git a/public/includes/class-cherry-projects-template-callbacks.php b/public/includes/class-cherry-projects-template-callbacks.php index c50ec4f..8a2fa4d 100644 --- a/public/includes/class-cherry-projects-template-callbacks.php +++ b/public/includes/class-cherry-projects-template-callbacks.php @@ -885,8 +885,11 @@ public function get_term_permalink( $attr = array() ) { $attr = wp_parse_args( $attr, $default_attr ); - $permalink = cherry_projects()->projects_data->cherry_utility->attributes->get_term_permalink( $this->term_data->term_id ); - + $permalink = get_term_link( $this->term_data->term_id, $this->term_data->taxonomy ); + if ( is_wp_error( $term_link ) ) { + $permalink = site_url(); + } + /** * Filter permalink text. *