I have added a dropdown tag filter to my blog, though for some reason, it is not displaying the tags of the posts that are published in the dropdown. Strangely i have used this method for other blogs before without any issues.
The dropdown displays visually as it should, though published tags do not show from the dropdown list.
I have used the following code within my blog listing template:
<div class=“tag-dropdown”>
{% set my_topics = blog_topics(‘default’, 250) %}
<select id=“blog-topics”>
<option>Filter by topic</option>
{% for item in my_topics %}
<option value=“{{ blog_topic_url(group.id, item.slug) }}”>{{ item }}</option>
{% endfor %}
</select>
</div>
JS
<script>
$(function(){
$(‘#blog-topics’).on(‘change’, function(){
var link = $(this).val();
if(link != “Filter by topic”){
window.location.href = link;
}
});
});
</script>
Any suggestions would be hugely appreciated.

