There is no way in the plugin to add extra social profiles links, but you can use a filter to do so, here is an example function that you can place within your Theme’s function.php to add more links:
add_filter( 'schema_wp_knowledge_graph_json', 'add_social_to_schema_wp_knowledge_graph_json_567656765' );
/**
* Schema Premium Plugin: Add additional Social Profiles links to Knowledge Graph
*
* @since 1.0.0
*/
function add_social_to_schema_wp_knowledge_graph_json_567656765( $schema ) {
$schema["sameAs"][] = 'URL #1 HERE';
$schema["sameAs"][] = 'URL #2 HERE';
return $schema;
}
And, here is the gist where you can grab the code.
I hope this helps.
Here’s more details about adding a filter for anyone else who reads this: https://schema.press/docs/modify-author-markup/
The Schema & Structured Data for WP & AMP plugin said they would add this feature for me though, so that might end up being the easier way to go: https://github.com/ahmedkaludi/schema-and-structured-data-for-wp/issues/553
@hishaman,
I second @chengas123. Just submitted a similar request to add Yelp.
The plugin author of Schema and Structured Data for WP plugin added Yelp within one week after I submitted a request.
Thank you for your consideration and above snippet.
Cheers!
Thanks for sharing the example code.
The reason why this feature won’t be added in Schema plugin is that Google recently dropped support for social profiles.
Google: Social profile markup for Google knowledge panels is deprecated. We now automatically discover social profiles to include in Google knowledge panels.
(learn more at Google developer site: here).
So, my guess is this feature will be gone from the plugin at one of the future updates.
Ah, I was not aware it had been deprecated! Thanks so much for the clarification Hesham!
Though it may still be worth adding for Bing. I’m not sure whether they use the schema markup, but they support a different set of social sites. E.g. if you search for me on Bing then there are results for Twitter, GitHub, LinkedIn, Stack Overflow, and AngelList that appear: https://www.bing.com/search?q=ben+mccann+connectifier+inc&qs=AS&pq=ben+mccann+connectifier&sc=1-23&cvid=675A466AD0CA42A3B25726A2E6200055&FORM=QBLH&sp=1
Of course Bing managed to find all these sites without the schema markup, so maybe it’s not necessary there either