Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

Generic sameAs Schema WordPress Plugin

Overview

This WordPress plugin adds comprehensive Schema.org markup to connect websites with social media profiles and professional links. It generates structured data that helps search engines understand professional relationships, expertise, and online presence. The code was created with AI assistance.

What it does

The plugin adds rich structured data to websites that tells search engines about:

  • Professional details (job title, employer, work locations, areas of expertise)
  • Personal information (honorific prefix, professional image, languages)
  • Educational background (alumni institutions)
  • Alternative name variations
  • Social media and professional profiles
  • Organizational relationships

This helps search engines understand connections between websites and other online presences, potentially improving visibility in search results and enabling rich snippets or knowledge panels.

Installation

  1. Download the plugin files
  2. Upload the generic-sameas-schema folder to /wp-content/plugins/
  3. Activate the plugin through the 'Plugins' menu in WordPress
  4. Go to Settings → sameAs Schema to configure

Usage

  1. Navigate to Settings → sameAs Schema in your WordPress admin

  2. Configure the following sections:

    Basic Information

    • Choose entity type (Person or Organization)
    • Add honorific prefix (Dr., Prof., Mr., Ms., etc.)
    • Enter primary name and website URL
    • Upload professional image or logo using WordPress Media Library
    • Add alternative name variations
    • Specify languages known

    Professional Information

    • Add job title and current employer
    • Specify multiple work locations (cities, regions, or "Remote")
    • List areas of expertise or specialization
    • Include educational institutions (alumni)

    Social Profiles & Professional Links

    • Add URLs to social media profiles
    • Include professional networks (LinkedIn, ResearchGate, etc.)
    • Add academic profiles (Google Scholar, ORCID, etc.)
  3. Use the live preview to see generated Schema.org markup

  4. Save settings to activate the structured data output

Example Output

{
  "@context": "https://schema.org",
  "@type": "Person",
  "name": "Dr. Jane Smith",
  "honorificPrefix": "Dr.",
  "image": "https://example.com/wp-content/uploads/profile.jpg",
  "alternateName": ["Jane Smith", "J. Smith"],
  "url": "https://example.com",
  "jobTitle": "Head of Research",
  "workLocation": ["Berlin", "Remote"],
  "worksFor": {
    "@type": "Organization",
    "name": "University of Example",
    "url": "https://university.example.com"
  },
  "knowsAbout": ["Data Science", "Machine Learning"],
  "knowsLanguage": ["English", "German", "Spanish"],
  "alumniOf": ["MIT", "Stanford University"],
  "sameAs": [
    "https://linkedin.com/in/janesmith",
    "https://scholar.google.com/citations?user=...",
    "https://orcid.org/0000-0000-0000-0000"
  ]
}

New Features in Version 1.3.0

Enhanced Professional Profile Support

  • Honorific Prefix: Add titles like "Dr.", "Prof.", "Mr.", "Ms." for proper professional representation
  • Professional Image: Upload and manage profile images directly through WordPress Media Library
  • Multiple Work Locations: Support for multiple work locations including remote work scenarios
  • Language Skills: Document language proficiencies for international visibility

Improved User Experience

  • WordPress Media Integration: Native image upload functionality with media library support
  • Dynamic Field Management: Add/remove multiple entries for locations, languages, and other fields
  • Enhanced Live Preview: Real-time schema generation preview with all new fields
  • Simplified Interface: Cleaner, more intuitive admin interface with better field organization

Profile URL Examples

The plugin works well with various professional and social platforms:

  • Professional Networks: LinkedIn, Xing
  • Academic Profiles: Google Scholar, ResearchGate, ORCID, Academia.edu
  • Social Media: Twitter/X, Bluesky, Mastodon, Instagram
  • Development: GitHub, GitLab
  • Other: Personal websites, portfolio sites, company pages

Compatibility

  • WordPress: 5.0 or higher
  • PHP: 7.4 or higher
  • SEO Plugins: Designed to complement Yoast SEO, RankMath, and other SEO plugins
  • Themes: Works with any properly coded WordPress theme
  • Media Library: Full integration with WordPress media management

Technical Details

  • Outputs Schema.org JSON-LD markup in the <head> section
  • Uses WordPress best practices for security and performance
  • Stores settings in WordPress options table
  • Includes proper uninstall cleanup
  • WordPress Media Library integration for image management
  • No external dependencies
  • Follows WordPress coding standards

Contributing

This plugin was created with AI assistance. Contributions, bug reports, and feature requests are welcome. Please open an issue or submit a pull request.

Changelog

Version 1.3.0

  • Added honorific prefix support (Dr., Prof., etc.)
  • Professional image upload with WordPress Media Library integration
  • Multiple work locations support (including remote work)
  • Language skills documentation (knowsLanguage)

Version 1.2.0

  • Added alternative names support
  • Enhanced live schema preview
  • Improved professional information fields
  • Added multiple alumni institutions support
  • Better admin interface organization

Version 1.1.0

  • Added professional details (job title, employer, expertise)
  • Added educational background support
  • Improved admin interface

Version 1.0.0

  • Initial release
  • Basic sameAs functionality
  • Social profile linking

License

This project is licensed under the MIT License - see the LICENSE file for details.

References

About

WordPress plugin that adds customizable sameAs Schema.org markup

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages