• Resolved mertren

    (@mertren)


    Hello there, I want to change the meta title of our author pages.

    Currently it’s:

    Author: %name% | x Blog

    I want to change it into:

    Posts by Author %name% | x Blog

    Is there any way to do it?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    My apologies for the belated reply.

    We’re looking into making options for adjusting this. For now, you can achieve this via filters.

    Here’s a filter that does exactly what you requested:

    add_filter( 'the_seo_framework_generated_archive_title', function( $title, $term ) {
    
    	if ( empty( $term->taxonomy ) && $term instanceof \WP_User && isset( $term->display_name ) ) {
    		$title = sprintf( 'Posts by Author %s', $term->display_name );
    	}
    
    	return $title;
    }, 10, 2 );

    (Where do I place filters?)

    I hope this helps ?? Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘How to change meta title for Author pages?’ is closed to new replies.