• Resolved dhirajshah

    (@dhirajshah)


    Hello Yoast SEO Team,

    For some reason, the wpseo_schema_person filter isn’t adding the jobTitle info inside the Person Schema. If I change the filter to any other types. for eg. organization, webpage or website, it works. But for Person, it’s not working. Is there anything that I am missing here?

    Eg. Code

    add_filter( 'wpseo_schema_person', 'add_jobTitle' ); function add_jobTitle( $data ) { $data['jobTitle'] = "CEO"; return $data; }

    • This topic was modified 1 year, 1 month ago by dhirajshah.
    • This topic was modified 1 year, 1 month ago by dhirajshah.
    • This topic was modified 1 year, 1 month ago by dhirajshah.
Viewing 1 replies (of 1 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @dhirajshah,

    Thanks for using the Yoast SEO plugin. We tested that snippet, and it works; the author archive (/author/user/) and in the schema for a post written by the author. Perhaps something else is running after this that undoes it? If you change the priority to 100, does that help? If not, what about priority 2?

    If not, please check for errors in the debug or server logs.

Viewing 1 replies (of 1 total)
  • The topic ‘wpseo_schema_person filter is not working’ is closed to new replies.