{"id":6648624,"date":"2015-10-14T19:23:18","date_gmt":"2015-10-14T19:23:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/filter-results-by-category\/"},"modified":"2016-08-30T19:08:04","modified_gmt":"2016-08-30T19:08:04","slug":"filter-results-by-category","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/filter-results-by-category\/","title":{"rendered":"Filter results by category"},"content":{"rendered":"<p>I know I can set up the Maps to show the category drop down and users can filter out that way. But I was hoping I could get the map to filter for the category without requiring user input.<\/p>\n<p>I&#8217;m making a site for a bottling company, they bottle soda and beer. Their products are available at different store in the area. Some only offer beer, some only offer soda, and some offer both. I would like to be able to display the store locator map on the beer product pages and it only show results for locations that offer beer, and vice versa.<\/p>\n<p>Locations\/Posts are already categorized as Soda, Beer, or both, is there a simple way to do this that I&#8217;m missing?<\/p>\n<p>https:\/\/wordpress.org\/plugins\/wp-store-locator\/<\/p>\n","protected":false},"template":"","class_list":["post-6648624","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6648624","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6648624\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6648624"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}