Support » Plugin: Schema & Structured Data for WP & AMP » reviewedBy Instead of Person

  • I have many regular Authors, but also have some experts. The experts have a custom user profile in WordPress like medical_reviewer or reviewer.

    Is it possible to automatically show reviewedBy schema property for articles with a specific (custom) user profile?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Magazine3

    (@magazine3)

    Yes, it may possible. can you know us how you are creating a custom user profile?

    Thread Starter sitebizniz

    (@sitebizniz)

    I use a function like this to create the new user profile:

    /* Create Reviewer User Role */
    remove_role('reviewer');
    add_role(
        'reviewer', //  System name of the role.
        __( 'Reviewer'  ), // Display name of the role.
        array(
            'level_8'  => true,
            'read'  => true,
            'delete_posts'  => false,
            'delete_published_posts' => false,
            'edit_posts'   => true,
            'edit_others_posts'   => true,
            'publish_posts' => true,
            'upload_files'  => true,
            'edit_pages'  => true,
            'edit_others_pages'  => true,
            'edit_published_pages'  =>  true,
            'publish_pages'  => true,
            'delete_published_pages' => false, // This user will NOT be able to  delete published pages.
        )
    );
    Plugin Author Magazine3

    (@magazine3)

    Currently, we do not have the “Reviewed by” field in the Article schema. But we have these fields in the “Webpage” schema and you can set up article and webpage schema both on the same page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.