Hi,
I'm trying to create a category slider for the gridder.
The user should input a category (from a select dropdown) and the output should be an array of post ids and images.
I was thinking of doing it using the sanitize function provided by CMB2 but it doesn't seems to work (maybe because it is hooked on post save? boh)
Right now I'm retrieving the correct category id from the model variable.
I've also tried by using an async wp-json API call in order to render the images asyncronously but it is not working (even though I was excpecting thi behaviour).
Is there any way to reprocess the CMB2 input value before passing it to the gridder? Even as a PHP filter function...
P.s. Obviously on the frontend I manage to do wathever I want by using a Wp query on the $category_id returned value. I'm just asking in order to have a "better feeling" on backend gridder
Thank you in advance,
Ernesto