Use Yoast SEO variables to build titles and meta descriptions once, then let WordPress fill in the right post, product, category, date, or site details on each page. This saves time, keeps metadata consistent, and reduces the risk of hundreds of duplicate snippets. The best setup is simple: combine one content-specific variable, one brand variable, and a short human-written phrase.
TLDR: Yoast SEO variables are placeholders such as %%title%%, %%sitename%%, and %%primary_category%% that auto-fill metadata across your site. For example, a title template like %%title%% %%sep%% %%sitename%% can turn into Best Hiking Boots for Rain | TrailGear. On a 500-post blog, this can save 15 to 25 hours of manual editing. One publisher saw duplicate meta descriptions drop by 68% after replacing generic text with variable-based templates.
What Yoast SEO Variables Actually Do
Yoast SEO variables are small text codes that pull information from WordPress and insert it into SEO fields. They work in SEO titles, meta descriptions, social previews, breadcrumbs, and some schema-related outputs.
Think of them as smart placeholders. You write the pattern once. Yoast fills in the details for each URL.
For example:
%%title%%becomes the post or page title.%%sitename%%becomes your website name.%%sep%%becomes the title separator you selected in Yoast.%%excerpt%%becomes the post excerpt.
So this template:
%%title%% %%sep%% %%sitename%%
May appear in Google as:
How to Grow Basil Indoors | Green Kitchen Notes
That is the main appeal. You get scalable metadata without writing every snippet by hand.
Where to Find Variables in Yoast
You can add variables in several places inside WordPress. The most common area is:
- Go to Yoast SEO.
- Open Settings or Search Appearance, depending on your Yoast version.
- Choose a content type, such as Posts, Pages, Products, or Categories.
- Edit the SEO title and Meta description templates.
You can also use variables inside the Yoast box on a single post or page. Click Insert variable near the SEO title or meta description field. Yoast will show a list of available options.
Honestly, it feels like this panel should be easier to scan. On some sites, finding the right variable takes 10 seconds longer than it should, especially if plugins add their own fields. Still, once your templates are set, you rarely need to touch them again.
Essential Yoast SEO Variables
Here are the most useful variables for everyday SEO work.
Basic Site and Page Variables
%%title%%— Inserts the title of the post, page, or archive.%%sitename%%— Inserts the site name from WordPress settings.%%sitedesc%%— Inserts the site tagline.%%sep%%— Inserts your chosen separator, such as | or -.%%page%%— Adds page number text when content is paginated.%%pagenumber%%— Inserts only the current page number.
Post and Content Variables
%%excerpt%%— Inserts the excerpt, or creates one from the content.%%excerpt_only%%— Inserts only the manually written excerpt.%%category%%— Inserts the post category.%%primary_category%%— Inserts the Yoast primary category.%%tag%%— Inserts tags assigned to the post.%%modified%%— Inserts the last modified date.%%date%%— Inserts the publish date.
Archive and Taxonomy Variables
%%term_title%%— Inserts the category, tag, or taxonomy name.%%term_description%%— Inserts the taxonomy description.%%category_title%%— Inserts the category title where supported.%%searchphrase%%— Inserts the search query on internal search pages.
Author Variables
%%name%%— Inserts the author name.%%user_description%%— Inserts the author bio.
These variables are enough for most websites. Custom fields and plugin-specific variables may also appear, especially on WooCommerce or advanced custom field setups.
Best SEO Title Templates
A strong SEO title template should be readable, short, and specific. Do not stuff every available variable into one line. Google usually displays around 50 to 60 characters, though pixel width matters more than character count.
Good templates include:
- Blog posts:
%%title%% %%sep%% %%sitename%% - Evergreen guides:
%%title%%: Complete Guide %%sep%% %%sitename%% - Product pages:
%%title%% %%sep%% Buy Online at %%sitename%% - Categories:
%%term_title%% Articles %%sep%% %%sitename%% - Author archives:
Posts by %%name%% %%sep%% %%sitename%%
Avoid clunky patterns like:
%%title%% %%category%% %%tag%% %%sitename%% %%date%%
That can create messy titles such as Running Shoes Reviews Fitness Gear Trail Shoes SportShop 2024. No one wants to click that.
Best Meta Description Templates
Meta descriptions do not directly control rankings, but they can affect clicks. They should explain the page fast and give the searcher a reason to visit.
For posts, try:
Read %%title%% on %%sitename%%. Learn practical tips, examples, and clear advice for %%primary_category%%.
For categories, use:
Browse our latest %%term_title%% guides, tutorials, and resources from %%sitename%%.
For products, use:
Shop %%title%% at %%sitename%%. See features, pricing, availability, and delivery options.
The catch is that variables can create awkward text if the source content is weak. If your category is named Misc, then %%term_title%% will proudly insert Misc. That is not Yoast’s fault. It is exposing a content problem.
How to Use Variables Without Making Metadata Sound Robotic
Variables are useful, but they need structure. A title made only of placeholders often feels flat. Add short fixed phrases where they help.
Compare these two templates:
%%title%% %%sep%% %%sitename%%%%title%%: Tips, Examples, and Advice %%sep%% %%sitename%%
The second can work well for tutorials, but not for news or opinion posts. Match the template to the content type.
Use these rules:
- Keep titles under control. Start with the topic, not the brand.
- Use one separator. Too many symbols look spammy.
- Do not repeat words. Watch for titles like SEO Guide SEO Tips | SEO Blog.
- Write custom snippets for key pages. Your homepage, service pages, and top sales pages deserve manual care.
- Preview before publishing. Yoast’s snippet preview helps catch ugly output.
Practical Templates by Site Type
Blog or Magazine
- Post title:
%%title%% %%sep%% %%sitename%% - Meta description:
Read %%title%%, including practical insights and examples from %%sitename%%. - Category title:
%%term_title%% News and Guides %%sep%% %%sitename%%
Local Business
- Service page title:
%%title%% %%sep%% %%sitename%% - Meta description:
Learn about %%title%% from %%sitename%%. Contact our team for service details, pricing, and availability.
Online Store
- Product title:
%%title%% %%sep%% %%sitename%% - Product meta description:
Buy %%title%% from %%sitename%%. Check product details, stock, shipping, and support options. - Product category title:
%%term_title%% %%sep%% Shop at %%sitename%%
Common Mistakes to Avoid
The biggest mistake is using one template for every part of the site. A blog post, product page, and author archive do not need the same wording.
Also watch for these issues:
- Empty excerpts:
%%excerpt_only%%may output nothing if no manual excerpt exists. - Overlong titles: Adding category, tag, date, and brand can push key terms out of view.
- Thin archive descriptions:
%%term_description%%only helps if the description is well written. - Duplicate patterns: Similar posts may still create similar snippets.
- Bad source data: Variables are only as good as the fields they pull from.
A Simple Setup Workflow
- List your content types. Include posts, pages, products, categories, tags, and author archives.
- Pick one title pattern per type. Keep it short.
- Create meta description templates. Use natural wording around variables.
- Check 10 sample URLs. Include old posts, new posts, archives, and products.
- Rewrite key pages manually. Focus on traffic, money pages, and high-impression URLs.
- Review Search Console data. Watch clicks, impressions, and click-through rate after changes.
Expect to waste time on small cleanup if your old content has inconsistent titles or categories. Still, the payoff is real. Clean variable templates can turn a messy site into a much easier SEO system.
Final Takeaway
Yoast SEO variables are not magic, but they are one of the fastest ways to control metadata at scale. Use %%title%%, %%sep%%, and %%sitename%% as your safe base. Add %%primary_category%%, %%term_title%%, or %%excerpt%% only when they improve the snippet. Keep your templates simple, preview real pages, and write custom metadata where the page matters most.

