Listable (theme)
Using FacetWP with the Listable theme
This video explains how to integrate FacetWP with the Listable theme:
Please also read Listable’s excellent articles:
Using Listable with a Map facet or Proximity facet
Listable theme and the WP Job Manager plugin (as used in the Listable theme, or standalone), automatically store geolocation data.
When you enter a valid location (anything that Google Geocoding API recognizes as an address) in the (Job) Listing post’s “Location” field, on post save this location info is geocoded server-side and saved in several custom fields. For more info see this WP Job Manager article. If these custom fields are not appearing, check the possible reasons mentioned in this Listify article.
Two of the resulting custom fields can be used for the Map / Proximity facet: in the facet’s settings, as “Data source” choose geolocation_lat
and as “Longitude” choose geolocation_long
.
Fix for older Listable versions
Listable versions older than v1.15.3 have an incompatibility with FacetWP v3.9.x and higher, causing JavaScript errors and malfunctioning facets and submit button on the homepage.
If you are using an older version and can’t update Listable, the quickest way to repair this is to put the following hook in your (child) theme’s function.php (or use the Custom Hooks plugin).
How to use custom PHP code?
PHP code can be added to your (child) theme's functions.php file. Alternatively, you can use the Custom Hooks add-on, or a code snippets plugin. More info
add_filter( 'facetwp_load_deprecated', '__return_true' );