Display a title based on multiple tags
-
My posts have an activity tag (e.g, fishing, hunting, etc.) and a location tag (e.g., BC, Alberta, etc.). I am using archive.php in my template to display posts which have, say, both a ‘fishing’ tag and a ‘BC’ tag using a URL like ‘domain.com/category/fishing+bc’.
How do I get the tag names and combine them into a page title like ‘Fishing in BC’?
For a URL like ‘domain.com/category/fishing’, I want a page title like ‘Fishing in Canada’, and for a URL like ‘domain.com/category/bc’, I want a page title like ‘All Activities in BC’.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Display a title based on multiple tags’ is closed to new replies.