Change author data within article schema
-
Hi,
I’d like to have specific author info added to the article schema markup and use the following hook:add_filter( ‘wpseo_schema_person_user_id’, function() {
return 27; // user id 27
} );As a result, the author piece within the article markup changes from @type Person to @type Thing with only @id being specified (missing ‘name’ triggers error in structured data testing tool) and a **separate** schema markup @type Person with the intended data of user id 27 is added.
How can I just show alternative user data but keep the author embedded within the article markup? Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Change author data within article schema’ is closed to new replies.