Template Variables Reference
Complete list of dynamic variables available in ProRank SEO templates.
Basic Variables
Essential variables available everywhere
| Variable | Description | Example Output |
|---|---|---|
| %title% | Post or page title | How to Start a Blog |
| %sitename% | Website name | My Awesome Site |
| %tagline% | Site tagline/description | Just another WordPress site |
| %sep% | Separator character | | or - or • |
| %page% | Page number (pagination) | Page 2 |
| %excerpt% | Post excerpt | This article explains... |
| %content% | Auto-generated from content | First 160 chars of content... |
Date & Time Variables
Dynamic date and time information
| Variable | Description | Example Output |
|---|---|---|
| %date% | Publish date | January 15, 2025 |
| %modified% | Last modified date | January 20, 2025 |
| %year% | Publish year | 2025 |
| %monthnum% | Month number | 01 |
| %monthname% | Month name | January |
| %day% | Day of month | 15 |
| %currentyear% | Current year | 2025 |
| %currentmonth% | Current month | January |
| %currentday% | Current day | 22 |
Author Variables
Post author information
| Variable | Description | Example Output |
|---|---|---|
| %author% | Author display name | John Doe |
| %author_firstname% | Author first name | John |
| %author_lastname% | Author last name | Doe |
| %user_description% | Author bio | WordPress developer and... |
Taxonomy Variables
Category, tag, and taxonomy information
| Variable | Description | Example Output |
|---|---|---|
| %category% | Primary category | Technology |
| %categories% | All categories | Tech, WordPress, SEO |
| %tag% | First tag | tutorial |
| %tags% | All tags | tutorial, guide, tips |
| %category_description% | Primary category description | Articles about technology... |
Archive Variables
Special archive page variables
| Variable | Description | Example Output |
|---|---|---|
| %archive_date% | Date archive title | January 2025 |
| %search_query% | Search query | wordpress seo |
| %post_type% | Post type name | Products |
| %post_type_singular% | Post type singular name | Product |
WooCommerce VariablesE-commerce
Product-specific variables for online stores
| Variable | Description | Example Output |
|---|---|---|
| %price% | Product price | $49.99 |
| %sale_price% | Sale price | $39.99 |
| %sku% | Product SKU | WP-12345 |
| %stock_status% | Stock availability | In Stock |
| %product_cat% | Product category | Electronics |
| %product_tag% | Product tags | wireless, bluetooth |
| %product_brand% | Product brand | Apple |
| %gallery_count% | Number of images | 5 photos |
Custom FieldsAdvanced
Access custom field values in templates
Using Custom Fields
Access any custom field value using the format:
%custom_field:field_name%
Examples:
%custom_field:product_color% → "Blue"
%custom_field:event_date% → "January 30, 2025"
%custom_field:location% → "New York City"ACF Fields
Advanced Custom Fields are automatically supported:
%custom_field:field_name% - Text fields
%custom_field:field_name% - Select fields
%custom_field:field_name% - True/False (outputs yes/no)
%custom_field:field_name% - Date fields (formatted)Template Examples
Common template patterns for different content types
Blog Posts
Title: %title% %sep% %category% %sep% %sitename%
Result: "How to Start a Blog | Technology | My Site"
Description: %excerpt% Published on %date% by %author%.
Result: "Learn the basics of blogging... Published on Jan 15, 2025 by John Doe."Product Pages
Title: Buy %title% - %price% | Free Shipping | %sitename%
Result: "Buy iPhone 15 Pro - $999 | Free Shipping | TechStore"
Description: %title% for sale at %price%. %stock_status%. %excerpt%
Result: "iPhone 15 Pro for sale at $999. In Stock. The latest flagship..."Category Archives
Title: %term% Archives %page% %sep% %count% Articles %sep% %sitename%
Result: "WordPress Archives Page 2 | 45 Articles | BlogSite"
Description: Browse our %term% content. %term_description% %count% posts available.
Result: "Browse our WordPress content. All about WordPress CMS. 45 posts available."Author Archives
Title: Articles by %author% %page% %sep% %sitename%
Result: "Articles by Jane Smith Page 3 | BlogName"
Description: Read articles written by %author%. %user_description%
Result: "Read articles written by Jane Smith. Professional writer and SEO expert."Best Practices
Tips for using template variables effectively
Keep Templates Concise
Don't overload templates with too many variables. Focus on the most important information.
Test with Real Content
Preview how templates look with actual posts to ensure proper formatting.
Use Fallback Variables
Some variables like %excerpt% fall back to %content% if empty.
Consider Character Limits
Remember that titles should be 50-60 characters and descriptions 150-160 characters.
Watch for Empty Variables
Some variables may be empty (like %tag% on untagged posts). Plan accordingly.