Drupal - Referenced Entity as an Exposed Filter

You have to actually go into your entity reference field settings on your content type and enable the following:

Render Views filters as select list. Provides a select list for Views filters on this field. This should not be used when there are over 100 entities, as it might cause an out of memory error.

This will then allow your exposed filter in views to be rendered as a select list.


There is a better way to handle this using the Views Reference Filter Module

Create your view and reference it in your view in a field.

This module provides the views filter for entity ID or entity reference fields:

  • node ID
  • user ID
  • taxonomy term ID
  • term reference field (Drupal core)
  • entity reference field (Entity reference module)

Tags:

Entities