Make WordPress Core

Opened 2 years ago

Last modified 2 years ago

#56895 new feature request

SEO tools can't differ from Tag and Categories

Reported by: jakobkjoller's profile jakobkjoller Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Taxonomy Keywords:
Focuses: ui Cc:

Description

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
elseif ( is_category() || is_tag() ) {
                $title['title'] = single_term_title( '', false );

                // If on an author archive, use the author's display name.
        }


To:

<?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.

Change History (1)

#1 @sabernhardt
2 years ago

  • Component changed from General to Taxonomy
Note: See TracTickets for help on using tickets.