X Features Cars Demo Power Plants Demo State Parks Demo Site Showcase Docs Add-ons Buy

How to filter WP attachments

By default, FacetWP only indexes published items, which excludes attachments. To index attachments (media items) too, use this hook:

[facetwp_indexer_query_args]

Make sure to re-index afterwards.