• Resolved fesarlis

    (@fesarlis)


    I think the thread title is self-explanatory. Even if author archives are disabled (manually or via a plugin) schema.org metadata reveal author name (and of course potentially an admin username). Not nice.
    I have experimented with various themes and with no plugins to make sure this is not caused by something else.

    In any case it would be nice if there was an option to select which metadata will be included.

    • This topic was modified 5 years, 5 months ago by fesarlis.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support amboutwe

    (@amboutwe)

    Yoast SEO uses the display name for the schema data. Please check the ‘Display name publicly as’ entry for your users to ensure the username is not set as the display name.

    Admin > Users > Edit user > Display name publicly as

    Thread Starter fesarlis

    (@fesarlis)

    I understand. However the whole concept still remains IMHO. Not all WordPress sites are blogs. No need to include any kind of author info in that case, so it should at least be configurable. I have also noticed that many users reported this but the team does not seem to be taking it under consideration.

    In any case thank you for your fast reply.

    • This reply was modified 5 years, 5 months ago by fesarlis.

    Hi,

    We understand the concern and we will create a feature request with our developers consider outputting a notification if the Display Name Publicly As is the same as the Username.

    In the meantime, the only workaround would be to add code to remove the schema. This guide explains more: https://developer.yoast.com/schema-documentation/api/.

    • This reply was modified 5 years, 5 months ago by Pcosta88.
    Thread Starter fesarlis

    (@fesarlis)

    That is great but I am guessing people will not consider it as a solution. Thanks anyway

    Btw, the suggested method to remove schema does not work (at least in my case). Schema data are still there.

    After searching I have found a way that seems to work:

    function my_remove_yoast_json($data){
            $data = array();
            return $data;
    }
    add_filter('wpseo_json_ld_output', 'my_remove_yoast_json', 10, 1);
    • This reply was modified 5 years, 5 months ago by fesarlis.
    • This reply was modified 5 years, 5 months ago by fesarlis.

    Hi,

    Odd. We would expect the filters we have to work. Can you elaborate more on what code you used from our documentation https://developer.yoast.com/schema-documentation/api/ and where you placed it?

    Thread Starter fesarlis

    (@fesarlis)

    I placed the following on my child theme’s functions.php:

    add_filter( ‘wpseo_json_ld_output’, ‘__return_false’ );

    Hi,

    We are not sure why the code snippet failed to work.

    We ran a test and you can see the JSON showing before we add the code snippet: https://imgur.com/a/9Fy0Aso

    We then added the code snippet to disable the JSON schema as described in this documentation https://developer.yoast.com/schema-documentation/api/#disable-schema into our functions.php of our main theme: https://imgur.com/a/TQEeffr

    It then removed the schema: https://imgur.com/a/1mohEEM

    We would like some more information.

    1. If you add the code snippet to the main functions.php does the issue resolve?

    2. Can you confirm it was copied/typed correctly directly into the functions.php file? We ask as depending on how it was copied/typed whitespace may have appeared which would prevent the code snippet from working correctly.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘schema.org data reveal author name’ is closed to new replies.