logo

Dynamic Variables

Variables that are automatically replaced with WordPress data

Dynamic Variables

The Manual JSON Editor supports 10 dynamic variables that are automatically replaced with real WordPress data when the schema is rendered on the frontend page.

Full Variable List

VariableDescriptionExample Output
`{{post_title}}`Current post/page title"My Blog Article"
`{{post_url}}`Full post/page URL"https://yoursite.com/my-article"
`{{post_date}}`Publication date (ISO 8601)"2025-01-15T08:00:00+00:00"
`{{post_modified}}`Last modification date"2025-01-20T10:30:00+00:00"
`{{post_excerpt}}`Post excerpt"Article summary..."
`{{post_thumbnail}}`Featured image URL"https://yoursite.com/image.jpg"
`{{author_name}}`Post author name"John Smith"
`{{site_name}}`WordPress site title"My Website"
`{{site_url}}`Main site URL"https://yoursite.com"
`{{site_logo}}`Site logo URL"https://yoursite.com/logo.png"

How to Use

  1. Open the Manual JSON Editor
  2. Click the Variables button to open the panel
  3. Click any variable to insert it at the cursor position
  4. The variable will appear as {{variable_name}} in the editor
  5. When the page renders, it will be automatically replaced with the real data

Use Case

Variables are ideal for creating reusable schemas. You can create an Article schema template with dynamic variables and assign it to multiple pages — each one will automatically get its own data.

Code Examples

Reusable Schema with Variables

json
{
  "@context": "https://schema.org",
  "@type": "Article",
  "headline": "{{post_title}}",
  "url": "{{post_url}}",
  "datePublished": "{{post_date}}",
  "dateModified": "{{post_modified}}",
  "description": "{{post_excerpt}}",
  "image": "{{post_thumbnail}}",
  "author": {
    "@type": "Person",
    "name": "{{author_name}}"
  },
  "publisher": {
    "@type": "Organization",
    "name": "{{site_name}}",
    "url": "{{site_url}}",
    "logo": {
      "@type": "ImageObject",
      "url": "{{site_logo}}"
    }
  }
}