menu

arrow_back Make a filter request form on the main page with facet wp?

by
1 vote
Friends, I purchased this paid plugin - https://facetwp.com/
Great convenient flexible filter, the catalog page was set up without problems according to the documentation.

But the question arose, and support is silent for 3 days.
There is a filter on the catalog page
5f9f0e739ae78456097177.png


Everything works as it should, but the following must be done on the home page
5f9f0eab2907a097621315.png

That is, from the main organize sending filter parameters, so that the directory has already passed with the selected filters.
In principle, there should be no problem with the region. Since the field is in the catalog filter, but what about the dates?
After all, I have a period of dates in the catalog, and on the main "month. That is, when you select "In January" when you go to the catalog in the filters should be the range

01.01.2021 - 31.01.2021, etc. depending on the selected month. How to implement this fic? can anyone have worked with facet? the plugin is good.

https://gist.facetwp.com/
https://facetwp.com/documentation/

I have attached the links to the documentation

1 Answer

by
 
Best answer
0 votes
Look carefully at the docs and you will see the facetwp_query_args hook
https://facetwp.com/documentation/developers/query...

Accordingly, you get the month there, convert it to a date range, and send this range to the parameters you need, it looks like you have meta_query