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
| Variable | Description | Example 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
- Open the Manual JSON Editor
- Click the Variables button to open the panel
- Click any variable to insert it at the cursor position
- The variable will appear as
{{variable_name}}in the editor - 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}}"
}
}
}