Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • But when I made saving title, I forgot about echo title on webpage.

    This is changes to echo title, description and keywords on custom taxonomy with same terms:

    Title:
    In file /modules/titles/titles.php I change strings 165-166:

    if ($tax_title = $tax_titles[$wp_query->get_queried_object_id()])
    return htmlspecialchars($this->get_title_paged($tax_title));

    to

    $term_obj = $wp_query->get_queried_object();
    if (isset($term_obj->term_taxonomy_id)) {
    if ($tax_title = $tax_titles[$term_obj->term_taxonomy_id])
    return htmlspecialchars($this->get_title_paged($tax_title));
    }
    else
    {
    if ($tax_title = $tax_titles[$wp_query->get_queried_object_id()])
    return htmlspecialchars($this->get_title_paged($tax_title));
    }

    Description:
    In file /modules/meta/meta-descriptions.php I change strings 117-118:

    $term_id = $wp_query->get_queried_object_id();
    $term_obj = $wp_query->get_queried_object();

    to

    $term_id = $wp_query->get_queried_object_id();
    $term_obj = $wp_query->get_queried_object();
    if (isset($term_obj->term_taxonomy_id)) $term_id=$term_obj->term_taxonomy_id

    Keywords:
    In file /modules/meta/meta-keywords.php I change string 139:

    $term_id = $wp_query->get_queried_object_id();

    to

    $term_id = $wp_query->get_queried_object_id();
    $term_obj = $wp_query->get_queried_object();
    if (isset($term_obj->term_taxonomy_id)) $term_id=$term_obj->term_taxonomy_id;

    I think, thats a lot of work for other settings.

    Yes, it’s for Version 7.6.5.1

    Hi.
    I found same problem.

    The problem was that SEO Ultimate used “term_id” instead of “term_taxonomy_id” to define term. If you have term with same slug in different taxonomy, this term will have same “term_id”, but different “term_taxonomy_id”.

    I resolve this problem only changing plugin code.

    In file /modules/class.su-module.php I change strings 1199-1201:

    $id = intval($object->term_id);
    $name = $object->name;
    $view_url = get_term_link($id, $type);

    to

    if (!isset($object->term_taxonomy_id)) {
    $id = intval($object->term_id);
    $view_url = get_term_link($id, $type);
    }
    else{
    $id = intval($object->term_taxonomy_id);
    $view_url = get_term_link(intval($object->term_id), $type);
    }
    $name = $object->name;

    Hope that helps someone.

Viewing 3 replies - 1 through 3 (of 3 total)