I thought I would change the title of my query page by using the wp_title filter, so I looked in the code to see how it was done. But I don’t understand what it is doing, and I think it has a bug.
I have a post-type for plants. When I click on the first QMT link, for “drought tolerant”, I get a title “drought tolerant | Blogname”. This is ugly, but correct, and uses the label for the term.
Next I click on “Shrubs”, so the title changes to “Features: drought-tolerant; Plant Types: shrubs | drought tolerant | Blogname”. This looks a bit odd because it’s using the term slug instead of the term label, and it leaves the original title in the middle.
If I continue to click on QMT links, the term slug is added to the front part of the title and the original “drought tolerant” term label remains as the middle part of the title.
So what do you think? Should it be putting term labels in the title instead of term slugs? And why is the original title just a term label with no taxonomy label? And why would you ever want to keep the original solitary title once you’ve narrowed the results (and expanded the title to match)?
- The topic ‘[Plugin: Query Multiple Taxonomies] Inconsistent title presentation – term slug vs label’ is closed to new replies.