Dynamic Variables in Swift Rank

Dynamic variables in Swift Rank are a powerful feature that allows you to create flexible templates. With them, a single template can automatically populate content for different pages, saving time and ensuring consistency. Dynamic variables act as placeholders in your schema templates. 

Format: {variable_name}

Example:

Template field: {post_title}

  • On Post A: “How to Use Schema Markup”
  • On Post B: “WordPress SEO Best Practices”

This way, the same template outputs a unique schema for each page automatically.

Variables vs Static Text #

Static Text Example:

Publisher: “My Company Name”

  • Always the same
  • Ideal for brand names or fixed data

Dynamic Variables Example:

Headline: {post_title}

  • Changes per page
  • Perfect for content that varies

Swift Rank provides a variable option on each field within the schema editor. Every input field includes a variable icon on the right side, allowing you to insert dynamic variables directly—no matter whether the field is for a URL, name, image, date, or location.

To add a variable, start by clicking the pencil (edit) icon for the field. Once the field is editable, select the <> (variable) icon to insert the variable.

add variables in swift rank

You can choose the appropriate variable from the dropdown and let Swift Rank automatically populate the data for each page.

choose the appropriate variable from the dropdown

This setup gives you full control and flexibility while ensuring your schema remains accurate and consistent site-wide.

Types of Variables #

1. Site Variables #

Pull information from your WordPress site settings.

Types of Variables
VariableDescriptionExample
{site_name}Site title“My Awesome Site”
{site_url}Homepage URLhttps://example.com
{site_description}Site tagline“Just another WordPress site”
{site_logo}Site logo URLhttps://example.com/logo.png

Use for: Site-wide information like publisher data, logos, or default images.

Example Schema:

{ 
 "@type": "Organization",  
"name": "{site_name}",  
"url": "{site_url}", 
 "description": "{site_description}",  
"logo": "{site_logo}"
}

2. Content Variables #

Pull data from the post or page being viewed.

VariableDescriptionExample
{post_title}Post/page title“Getting Started Guide”
{post_excerpt}Post excerpt“Learn how to use…”
{post_content}Full content (HTML stripped)“Full article text…”
{post_url}Permalinkhttps://example.com/post
{featured_image}Featured image URLhttps://example.com/image.jpg
{post_date}Publish date“2025-01-15T10:30:00+00:00”
{post_modified}Last modified date“2025-01-16T14:22:00+00:00”

Use for: Article content, product data, or any page-specific information.

Example Schema:

{

  "@type": "Article",

  "headline": "{post_title}",

  "description": "{post_excerpt}",

  "image": "{featured_image}",

  "datePublished": "{post_date}",

  "dateModified": "{post_modified}"

}

3. Author Variables #

Pull details from the post author’s profile.

VariableDescriptionExample
{author_name}Display name“John Doe”
{author_url}Author archive URLhttps://example.com/author/john
{author_bio}Biographical info“John is a writer…”
{author_email}Email“john@example.com”
{author_avatar}Profile imagehttps://gravatar.com/avatar.jpg

Use for: Author information, reviews, or person schema.

Example Schema:

{

  "@type": "Article",

  "author": {

    "@type": "Person",

    "name": "{author_name}",

    "url": "{author_url}",

    "description": "{author_bio}"

  }

}

These are the variables provided by Swift Rank to help you build flexible and accurate schema templates.

We’re here to help!

If you are feeling a bit stuck with the documentation or simply want a second pair of eyes on your setup, then please reach out. Our friendly team is always ready to assist you in getting everything running perfectly.

What are your feelings

Updated on January 9, 2026