WordPress.org

Ready to get started?Download WordPress

Forums

WordPress SEO by Yoast
[resolved] Archives Header Manipulation (3 posts)

  1. davidpayne
    Member
    Posted 1 year ago #

    When clicking on a tag or category link and going into archives the header states "You are browsing the archives for "tag or category" - Physician-Assistant-ED. (Note: Physician-Assistant-ED is the name of my site)

    The background code on the archive.php file is:

    <h3 class="pagetitle"><?php printf( __( 'You are browsing the archive for %1$s.', 'buddypress' ), wp_title( false, false ) ); ?></h3>

    How do I get rid of the "- Physician-Assistant-ED" text? I tried going into the "titles" section of the SEO plugin admin area and clearing all necessary areas. This didn't work. The only thing that works is to deactivate the plugin.

    Please help!

    Dave

    http://wordpress.org/extend/plugins/wordpress-seo/

  2. Joost de Valk
    Member
    Plugin Author

    Posted 1 year ago #

    It's just a wrong use of wp_title, use get_the_title instead.

  3. davidpayne
    Member
    Posted 1 year ago #

    I tried replacing wp_title with get_the_title and what it ends up doing is putting in the title of the last post that was assigned that category instead of the actual name of the category. Thoughts?

    Does it make a difference that this is a custom taxonomy?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic