Advanced2min read
Dynamic Variables
WordPress data variables for the Manual JSON Editor — resolved in real time per page.
Dynamic Variables
The Manual JSON Editor supports 10 variables that are automatically replaced with real WordPress data when the schema renders on the frontend. Write a schema once — it works correctly on every page it is assigned to.
Full variable list
| Variable | Output | Example |
|---|---|---|
| `{{post_title}}` | Post/page title | "Complete SEO Guide 2025" |
| `{{post_url}}` | Full post URL | "https://yoursite.com/seo-guide" |
| `{{post_date}}` | Publication date (ISO 8601) | "2025-01-15T08:00:00+00:00" |
| `{{post_modified}}` | Last modification date | "2025-03-20T14:30:00+00:00" |
| `{{post_excerpt}}` | Post excerpt | "A complete guide to SEO..." |
| `{{post_thumbnail}}` | Featured image URL | "https://yoursite.com/img.jpg" |
| `{{author_name}}` | Post author name | "Jane 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 insert variables
- Open the Manual JSON Editor
- Click the Variables button to open the variable panel
- Click any variable to insert it at the cursor position
- The variable appears as
{{variable_name}}in the JSON - When the page loads, it resolves to the real data for that specific page
Primary use case: reusable templates
Create one Article schema with all variables, assign it to every blog post. Each post gets its own correctly populated schema without any extra work.
Code Examples
Reusable Article template 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}}"
}
}
}Was this page helpful?
Thanks for the feedback!