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 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.