• In case you are still using this, there is a small fix to avoid PHP Warnings like these:

    PHP Warning:  Undefined property: WP_Post_Type::$term_id in ../wp-content/plugins/tag-cloud-per-category/tag-cloud-per-category.php on line 59

    Lines 56-59:

    $term = get_queried_object();
    if( $term ) {
    
        $tags = $this->get_category_tags($term->term_id);

    Possible fix in line 57:

    if( $term && $term instanceof WP_Term ) {
  • The topic ‘Small fix for Undefined property: WP_Post_Type::$term_id’ is closed to new replies.