Schema shortcodes
Shortcodes save you work. They are placeholders that the Xagio plugin replaces with each page’s details, so one schema can serve many pages.
Use shortcodes
Section titled “Use shortcodes”Type a shortcode into any text field of a schema. When the plugin outputs the schema on a page, it replaces the shortcode with that page’s value.
For example, a Service schema with the name %%title%% uses each page’s title as the service name.
| Shortcode | Replaced with |
|---|---|
%%sitename%% |
The site’s name |
%%siteurl%% |
The site’s URL |
%%currurl%% |
The current URL |
%%tagline%% |
The site’s tagline or description |
%%sep%% |
The separator set in your SEO settings |
%%title%% |
The title of the post or page |
%%parent_title%% |
The title of the parent page |
%%term_title%% |
The term name |
%%date%% |
The date of the post or page |
%%pretty_date%% |
The date in a format like “June 2017” |
%%search_query%% |
The current search query |
%%author_name%% |
The author’s name |
%%ps_seo_title%% |
The Xagio SEO title |
%%ps_seo_description%% |
The Xagio SEO description |
%%excerpt%% |
The post or page excerpt |
%%tag%% |
The current tag or tags |
%%category%% |
The post categories, comma separated |
%%category_primary%% |
The primary category of the post or page |
You can also open this list on the Schemas page: select Shortcodes to open the Shortcode List window.
Shortcodes are replaced on your WordPress site, not in the panel. The code preview and the validator in the panel show the shortcode text as it is.
What it costs
Section titled “What it costs”Shortcodes are free.
Troubleshooting
Section titled “Troubleshooting”- A shortcode shows as plain text on your site: check the spelling, including both
%%signs on each side.