article:author must not contain spaces
-
Facebook validation fails when the content attribute of the
<meta property="article:author">
contains spaces:Object at URL ‘https://blueseed.co/partners/’ of type ‘article’ is invalid because the given value ‘Dan Dascalescu’ for property ‘article:author’ could not be parsed as type ‘profile’.
I’m not quite sure what the format should be, but ‘+’, “_’ and “%20” were invalid replacements for space, so I resorted to just removing spaces in line 1653:
$metadata_arr[] = ‘<meta property=”article:author” content=”‘ . str_replace(‘ ‘, ”, get_the_author_meta(‘display_name’, $post->post_author)) . ‘” />’;
PS: any chance to host this plugin on GitHub, so that users can easily submit patches?
- The topic ‘article:author must not contain spaces’ is closed to new replies.