Using variable in custom taxonomy for canonical
-
I’m trying to use the variable %%cf_<custom-field-name>%% within a custom taxonomy to change the canonical URL output in the header.
The final desired URLs are:
https://www.website.com/products/type1/brand1/
https://www.website.com/products/type2/brand1/
https://www.website.com/products/type3/brand1/So for each “brand” taxonomy page I have created the following:
https://www.website.com/products/%%ct_type%%/brand1/ (where “type” is the custom taxonomy)But the variable doesn’t fire and just outputs the raw code in the header:
https://www.website.com/products/%%ct_type%%/brand1/Is it possible to use the variable in this way?
- The topic ‘Using variable in custom taxonomy for canonical’ is closed to new replies.