Title: Add meta author
Last modified: June 5, 2024

---

# Add meta author

 *  Resolved [DreamOn11](https://wordpress.org/support/users/dreamon11/)
 * (@dreamon11)
 * [2 years ago](https://wordpress.org/support/topic/add-meta-author/)
 * Hello,
 * Is there a way to configure The SEO Framework to add <meta name=”author” content
   =”xxx”> in <head>?
 * Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [2 years ago](https://wordpress.org/support/topic/add-meta-author/#post-17805666)
 * Hello!
 * I don’t think this tag is supported by any platform or browser. [Other SEOs even deem it useless](https://moz.com/blog/the-ultimate-guide-to-seo-meta-tags).
   We supplement authorial information using the WebPage structured data via TSF
   and Articles structured data via one of our aptly named extensions.
 * Still, you could use a filter if you wish to add this metadata. I think this 
   will do, but I haven’t tested it:
 *     ```
       add_filter(
       	'the_seo_framework_meta_render_data',
       	function ( $tags_render_data ) {
   
       		if ( is_singular() ) {
       			$author_id = tsf()->query()->get_post_author_id(); // This verifies if the post supports authors.
   
       			$author_name = $author_id 
       				? get_userdata( $author_id )->display_name
       				: '';
   
       			if ( strlen( $author ) )
       				$tags_render_data['author'] = [
       					'attributes' => [
       						'name'    => 'author',
       						'content' => $author_name,
       					],
       				];
       		}
   
       		return $tags_render_data;
       	},
       );
       ```
   
 * ([Where do I place filters?](https://tsf.fyi/d/filters#where))
 *  Thread Starter [DreamOn11](https://wordpress.org/support/users/dreamon11/)
 * (@dreamon11)
 * [2 years ago](https://wordpress.org/support/topic/add-meta-author/#post-17805877)
 * Thanks for help [@cybr](https://wordpress.org/support/users/cybr/).
 * I noticed this because I use Notion and when you mention a page, it manages to
   retrieve the author of page that you mentioned, this works for sites with YOAST
   but not with TSF.
 * I guess it’s because of the meta author tag but I might be wrong.
 *  Plugin Author [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * (@cybr)
 * [2 years ago](https://wordpress.org/support/topic/add-meta-author/#post-17808045)
 * Hi again!
 * Thanks for explaining where you use it. I’ll try it out later.
 * I noticed I made a typo in my snippet, so it didn’t work.
    This updated version
   is tested and works as I would implement it into TSF itself:
 *     ```
       add_filter(
       	'the_seo_framework_meta_render_data',
       	function ( $tags_render_data ) {
   
       		$tsfquery = tsf()->query();
   
       		if ( $tsfquery->is_single() ) {
       			$author_id = $tsfquery->get_post_author_id(); // This verifies if the post supports authors.
   
       			if ( $author_id ) {
       				$tags_render_data['author'] = [
       					'attributes' => [
       						'name'    => 'author',
       						'content' => get_userdata( $author_id )->display_name ?? '',
       					],
       				];
       			}
       		}
   
       		return $tags_render_data;
       	},
       );
       ```
   
 * Could you [implement it](https://tsf.fyi/d/filters#where) and see if Notion now
   grabs the author’s name correctly? You might need to mention a page you haven’t
   before in Notion because they might have cached responses from other pages earlier.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Add meta author’ is closed to new replies.

 * ![](https://ps.w.org/autodescription/assets/icon.svg?rev=3000376)
 * [The SEO Framework – Fast, Automated, Effortless.](https://wordpress.org/plugins/autodescription/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autodescription/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autodescription/)
 * [Active Topics](https://wordpress.org/support/plugin/autodescription/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autodescription/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autodescription/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sybre Waaijer](https://wordpress.org/support/users/cybr/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/add-meta-author/#post-17808045)
 * Status: resolved