I'm setting up a set of blog listing pages which use blog tags as listing filters. When a tag is clicked, the the tag detail page still needs to use the full tags list and highlight the selected tag. I also want to use some of the tags to create collections of posts, like featured posts and recommended posts. These tags need to be filtered from the tags list, since these are only used to show collections on the main listing page. To get this tags list I use the blog_tags function. I filter this list by checking if the tag_id is in a hard-coded array of tag_id's I'd like to hide. When using one language (English), all works fine and I can use the tag_id to filter the tags list. But when another language is added, i.e. Dutch, and I use the translated_from_id to filter the tags, it doesn't work because the translated_from_id is always null. I tested if using the contents_tags function would fix this, which it does, partly. It gives me the translated_from_id but leaves only one tag (the filtered one) in the tag list when on the tag detail listing page. Therefore I'd like to request to extract the translated_from_id when using the blog_tags function so I can use one list with the original tag_id's and not having to add a new array of id's every time my team adds a new language.
...read more