Answer

There are two methods for filtering the Blog:

  • Filter via Liquid - This works with all Modules and WebApps - we'll give more details on this below.
  • Filter via URL parameters. - this is a special Technique for filtering the Blog. You can read more about it here

Filtering using the category_ids parameter:

You can filter any Module or WebApp by Category using the parameter in the Liquid:

category_ids: '11111,22222'

...where 11111 and 22222 are the IDs of specific Categories in the Admin.

E.g.

{% include 'module', id: '3', layout: 'default', per_page: '20', sort_type: 'properties.name', sort_order: 'asc', category_ids: '11111,2222' %}

The trick is knowing which ID you need. Here are a few ideas:

  • On a Category Detail Page, you can use the ID from the current category.
  • If you have a "featured" Category you know you want to display on the Homepage for example, you can hardcode the ID.