If your online store uses WooCommerce, for better ranking of the site for product-related queries, we recommend using product prices in the meta tags for the title and description.
And if using the product price in the description is not as important, considering that search engines often generate the site’s snippet description themselves during snippet formation in search results and it may not be taken from the description, then the price in the title will always be displayed in the snippet’s header, which can greatly assist in promoting the site.
To display the product price in the title or description on your WordPress site, you don’t need to have any special knowledge; everything can be done quite quickly and easily.
Displaying the Product Price in WooCommerce Meta Tags
To display, we will need the Yoast SEO plugin (if you are using All in One SEO Pack or another, we still recommend switching to Yoast SEO, its advantages were described in the previous article).
The thing is, when creating template titles, Yoast has a rich set of variables, which is significantly broader than that of similar plugins.
%%date%%: Date of the post/page
%%title%%: Post/page title
%%parent_title%%: Parent page title
%%sitename%%: Site name
%%sitedesc%%: Site slogan or description
%%excerpt%%: Post/page excerpt (generated automatically if not provided)
%%excerpt_only%%: Post/page excerpt (without automatic generation)
%%tag%%: Current tag(s)
%%category%%: Categories of the post (comma-separated)
%%primary_category%%: Replaced with the primary category of the post/page
%%category_description%%: Category description
%%tag_description%%: Tag description
%%term_description%%: Term description
%%term_title%%: Term title
%%searchphrase%%: Current search phrase
%%sep%%: The separator defined in your theme’s wp_title() tag.
%%date%%: Date of the post/page
%%title%%: Post/page title
%%parent_title%%: Parent page title
%%sitename%%: Site name
%%sitedesc%%: Site slogan or description
%%excerpt%%: Post/page excerpt (generated automatically if not provided)
%%excerpt_only%%: Post/page excerpt (without automatic generation)
%%tag%%: Current tag(s)
%%category%%: Categories of the post (comma-separated)
%%primary_category%%: Replaced with the primary category of the post/page
%%category_description%%: Category description
%%tag_description%%: Tag description
%%term_description%%: Term description
%%term_title%%: Term title
%%searchphrase%%: Current search phrase
%%sep%%: The separator defined in your theme’s wp_title() tag.