Forums

Title Tags For Categories and Tags (1 post)

  1. stenspect
    Member
    Posted 2 years ago #

    I need help me with a PHP call. I'm trying to fix my title tags on my site. As of now, 'Categories' and 'Tags' both appear like this: Stuff|Wordpress.

    I would like Categories appear like this: Categories|Stuff|Wordpress

    And Tags like this: Morestuff|Wordpress

    My goal is to keep categories in Google's index but not have the 'title tags' duplicated in Google since we sometimes have the same tags as categories.

    Does anyone know what the appropriate PHP call would be?

    It should be something along these lines, but search would be replaced with 'tags' or something that recognized when a Tag is being viewed.

    <? if (is_search()): ?>
    <title><?php the_search_query(); ?> | <?php bloginfo('name'); ?> </title>

Topic Closed

This topic has been closed to new replies.

About this Topic