Modifier la balise de titre avec Yoast SEO.

PHP
                    /**
 * Changes title meta with Yoast SEO.
 * Changes title for a specific category.
 *
 * @param string $title        The current title.
 * @param object $presentation The presentation object containing the necessary data.
 *
 * @return string The altered title tag.
 */
function change_category_title( $title, $presentation ) {
    $categories = \get_the_category( $presentation->model->object_id );

    foreach ( $categories as $category ) {
        if ( $category->slug === 'books' ) {
            return sprintf( '%s - %s', $title, $category->name );
        }

        return $title;
    }
}

add_filter( 'wpseo_title', 'change_category_title', 10, 2 );