[wp-trac] [WordPress Trac] #56895: SEO tools can't differ from Tag and Categories
WordPress Trac
noreply at wordpress.org
Mon Oct 24 14:59:08 UTC 2022
#56895: SEO tools can't differ from Tag and Categories
-----------------------------+-----------------------------
Reporter: jakobkjoller | Owner: (none)
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: ui |
-----------------------------+-----------------------------
To avoid duplicate titles, we need to make it possible to differ between
the tag archive and the category archive.
Today we need a plugin like Yoast to fix it.
If we change general-template.php line 1208-1217
From:
{{{#!php
<?php
elseif ( is_category() || is_tag() ) {
$title['title'] = single_term_title( '', false );
// If on an author archive, use the author's display name.
}
}}}
To:
{{{#!php
<?php
// If on a category archive, use the term title.
} elseif ( is_category()) {
$title['title'] = single_term_title( __('Category
archive'), false );
// If on a tag archive, use the term title.
} elseif ( is_tag() ) {
$title['title'] = single_term_title( __('Tag archive'),
false );
// If on an author archive, use the author's display name.
}
}}}
We will get the freedom to change it our self.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56895>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list