ACF fields and map filtering
Pro Feature
Requires WPEnhanced Ajax Filter Blocks Pro.
Overview
WPEnhanced Ajax Filter Blocks Pro integrates with Advanced Custom Fields (ACF) in two ways:
- ACF field picker — Select ACF fields in the block editor instead of typing meta keys manually.
- Map radius filtering — Filter listings by distance from a point using ACF Google Map (or compatible map) fields.
Requires ACF (free or Pro) with fields attached to the post type queried by your Archive Loop.
ACF field picker
Setup
- Add Filter Posts Item inside Filter Posts.
- Set Filter source to ACF or Custom field (ACF).
- Use the Field picker to choose an ACF field (select, number, text, etc.).
- Pick a Control type appropriate to the field (Select, Range, Checkbox, etc.).
- Link Filter Posts to your Archive Loop querying the same post type.
The free plugin supports manual meta keys; Pro adds the picker and richer ACF field type handling.
See also Custom meta integration.
Map radius filtering
Ideal for directories, property listings, and store locators with lat/lng stored in an ACF map field.
Setup
-
Confirm listings have an ACF Map field populated.
-
Add Filter Posts Item → Filter source: ACF Map (or Map radius).
-
Select the Map field in the picker.
-
Configure:
- Default center or use visitor geolocation if enabled
- Default radius and unit (km/miles)
- Control — Slider, select preset radii, or numeric input
-
Archive Loop post type must match the ACF field location rules.
Testing
- Pick a known address on the map filter—only listings within radius should appear.
- Combine with taxonomy filters (e.g. listing type + distance).
Field type tips
| ACF field type | Suggested control |
|---|---|
| Select / Checkbox | Select, Radio, Checkbox |
| Number | Range or Select |
| Text | Search or Select (if discrete values) |
| Map | Map radius (Pro) |
What's next
- Custom meta integration — Manual meta keys (free)
- Custom post types — CPT directory setup
- Conditional filters — Show map filter only when relevant