- This topic has 5 replies, 3 voices, and was last updated 3 weeks, 1 day ago by .
I am new to Meta Box and FacetWP, coming from Toolset.
I'm building my first project with the Meta Box / FacetWP combination (the latest versions) and have an issue with filtering by custom fields.
With custom Taxonomies everything works flawlessly as expected.
But when a facet contains a Meta Box custom field and I press "Re-index" in FacetWP, the data from all custom fields is lost in the FacetWP index, so all field filters on the front end are empty, as if the posts didn't have custom field values. Taxonomy filters stay intact.
The values of custom fields remain in the post itself, but they are gone completely from the FacetWP index table in the database after triggering re-indexation.
When I open one post and simply re-save it, the values of all fields from the particular post "magically" re-appear in the FacetWP index. So, after each re-indexing I would need to open every single post and re-save it, but that is not doable, of course.
I tested it with several field types: checkboxes, text and numbers. The behavior was always the same.
The options "Searchable", "Sortable" and "Filterable" are checked for the fields. Deactivating practically all other plugins didn't help.
It's probably something simple, but after reading the documentation I cannot figure out why re-indexing always loses the data of custom fields.
I will appreciate your help.
- You must be logged in to reply to this topic.