# Person Structured Data for a Personal Brand

> Adds Person JSON-LD describing you (name, job title, photo, employer and social profiles) to your About page and homepage, for personal sites and portfolios.

- Type: PHP
- Runs: Frontend only
- Category: [SEO](https://wpide.com/library/category/seo/)
- Tags: schema, person, personal-brand
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/seo-person-schema-about/

## Code

```php
// Your details.
$wpide_person = array(
    'name'      => 'Jane Doe',
    'job_title' => 'Freelance Web Designer',
    'image'     => home_url( '/wp-content/uploads/jane-doe.jpg' ),
    'works_for' => 'Doe Studio',
    'same_as'   => array( 'https://www.linkedin.com/in/janedoe', 'https://github.com/janedoe' ),
    'about'     => 'about', // Slug of your About page.
);

add_action( 'wp_head', function () use ( $wpide_person ) {
    if ( ! is_front_page() && ! is_page( $wpide_person['about'] ) ) {
        return;
    }

    $data = array(
        '@context' => 'https://schema.org',
        '@type'    => 'Person',
        '@id'      => home_url( '/#person' ),
        'name'     => $wpide_person['name'],
        'url'      => home_url( '/' ),
        'jobTitle' => $wpide_person['job_title'],
        'image'    => $wpide_person['image'],
        'sameAs'   => array_values( array_filter( $wpide_person['same_as'] ) ),
    );

    if ( $wpide_person['works_for'] ) {
        $data['worksFor'] = array( '@type' => 'Organization', 'name' => $wpide_person['works_for'] );
    }

    echo '<script type="application/ld+json">' . wp_json_encode( array_filter( $data ), JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE | JSON_HEX_TAG ) . "</script>\n";
} );
```

## Notes

Fill in your details and the slug of your About page. Use Organization schema instead if the site represents a company.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Person Structured Data for a Personal Brand" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
