# Post filter module not working as expected/broken

**URL:** <https://community.hubspot.com/t/post-filter-module-not-working-as-expected-broken/12048>\
**Category:** APIs & Integrations\
**Created:** [February 13, 2018, 7:45pm UTC](https://community.hubspot.com/t/post-filter-module-not-working-as-expected-broken/12048 "2018-02-13T19:45:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [February 13, 2018, 7:45pm UTC](https://community.hubspot.com/t/post-filter-module-not-working-as-expected-broken/12048/1 "2018-02-13T19:45:20Z")

</div>

My script works locally as well as in preview with no errors in console. I am console logging the event listener and it registers in all three places (local, preview, production).

```auto
(function($){
$(document).ready(function(){

	$('.dropdown').hover(toggleDropdown);
	$('.dropdown ol').slideToggle(0);

	$('.dropdown').hover(function(){
		console.log('Hover Dropdown');
	});

});

function toggleDropdown(e){
	var dropdown = $(this);
	dropdown.children('ol').stop(1000).slideToggle(250);
}

})(jQuery);

```

Within .dropdown ol lives the a Hubl topic filter that listing the default content.

```auto
<div class="dropdown">Categories <i class="fa fa-caret-down"></i>
<ol>{% post_filter "topic_dropdown" label="Category Dropdown", expand_link_text="View More", 
filter_type="tag", list_title="", max_links=15, order_by="post_count", select_blog="default" %}</ol>
</div>

```

If I change the Hubl module to a post\_listing everything works. Currently the post\_filter module only appears if I am in design manager preview option default blog. If i change the preview option to a different blog the post\_filter stops working.

```auto
<div class="dropdown">Categories <i class="fa fa-caret-down"></i>
<ol>{% post_listing "my_post_listing" label="My Post Listing", list_title="Recent Posts", 
listing_type="recent", max_links=5, select_blog="default" %}</ol>
</div>

```

Except now the dropdown shows a list with each article name not the tag/category as needed. The Hubl reference states either of these modules can be used in a blog post. Would the post\_filter module not work if there is another of the same modules? or if the module were used on the listing page and blog page?

---

<div class="post-metadata">

**Author:** ![Derek\_Gervais](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/derek_gervais/32/17429_2.png) [@Derek\_Gervais](https://community.hubspot.com/u/Derek_Gervais)\
**Post date:** [February 14, 2018, 10:09pm UTC](https://community.hubspot.com/t/post-filter-module-not-working-as-expected-broken/12048/2 "2018-02-14T22:09:55Z")

</div>

Hi [@fly.space.age](https://community.hubspot.com/u/fly.space.age),

Can you send me a link to the blog template in question so that I can troubleshoot directly?

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [February 15, 2018, 5:45pm UTC](https://community.hubspot.com/t/post-filter-module-not-working-as-expected-broken/12048/3 "2018-02-15T17:45:46Z")

</div>

I did not have any content pulling in bc there was no content defined in that particular blog. Adding tags fixed the issue.
