Enhancements Over the Default

The custom embed template (embed-content.php at the theme root) provides the following improvements over the WordPress default:

How an Aegis post looks when embedded elsewhere.

Content Order

When an Aegis post is embedded on an external site, the content is rendered in this order:

  1. Featured image (linked to the post).
  2. Post title (linked to the post).
  3. Publication date (on single posts only).
  4. Excerpt.
  5. Primary taxonomy term (first category or tag).
  6. Footer with site icon and site name.
  7. Schema.org Article structured data (JSON-LD script).

Schema.org Structured Data

The embed template automatically generates Article schema.org structured data with the following properties:

PropertyValue Source
@typeArticle
headlinePost title
urlPost permalink
datePublishedPost publish date (W3C format)
dateModifiedPost modified date (W3C format)
authorPost author name
publisherSite name
publisher.logoSite icon (512px)
imageFeatured image URL
descriptionPost excerpt (stripped of HTML)

Customization

Filters

The embed template respects the following WordPress core filters:

Actions

File Location

The embed template file is located at the theme root:

Copied!
Directory tree
aegis/embed-content.php

WordPress automatically uses this file when it detects an embed content template in the active theme.

oEmbed card styling lives in the framework:

Copied!
Directory tree
vendor/aegis/framework/public/css/elements/oembed.css

It loads on enqueue_embed_scripts (handle aegis-oembed) alongside WordPress core wp-embed-template styles.

Next Steps