Gregius Optimizer – Schema SameAs

Overview

The sameAs property tells search engines which social media profiles belong to your organization. This helps associate your brand across platforms and can surface in Google’s knowledge panel.

Gregius Optimizer integrates with the standard WordPress Social Links block (core/social-links). Enable the toggle and URLs from each social link are collected and injected into your Organization JSON-LD output.


Technical Prerequisites & Blocks

  • Gregius Optimizer plugin installed and activated
  • A Social Links block (core/social-links) with social links added (e.g., GitHub, LinkedIn, X/Twitter)

Enable SameAs Schema on a social links block

Enable the toggle

  1. Open any post, page, or template in the Block Editor.
  2. Add or select a Social Links block.
  3. In the right sidebar (Block tab), locate the Organization SameAs panel.
  4. Toggle “Include in site’s schema” to ON.
  5. Save or update.

The URLs from your social links are now injected into the Organization JSON-LD for every page on the site.

How URLs are collected

Gregius Optimizer reads the Social Links block at page-render time:

  • Scans the block for each Social Link item and collects its URL.
  • Scans the rendered HTML for <a href="..."> links as a fallback for links added outside the standard block structure.
  • Removes duplicate URLs automatically.
  • Follows Reusable block and Pattern references to collect URLs from nested social links.

Only URLs from a Social Links block with the toggle enabled are collected. Inline links in your content are excluded.


Permissions

ActionRequired capability
Toggle SameAs Schema on a social-links blockedit_post (on that post)
View structured data on frontendNone (public)

Next Steps

Gregius Optimizer is fully open-source, transparent, and built for modern development workflows.

Available on WordPress.org: Install the plugin directly from the official in the WordPress Plugin Directory.

View on GitHub: You can review, fork, and inspect the entire codebase and core logic over at the repository on GitHub.

Documentation: Read the setup guides and technical documentation below to get started.

  • Sitemap – Control which content appears in your XML sitemap
  • Robots.txt – Configure crawl directives for search engines and AI bots
  • Schema – Add structured data markup to help search engines understand your content
  • Social Card – Control how your content appears when shared on social media and in search results.
  • LLMs – Optimize your site for AI agents and large language models with an /llms.txt file