Hello, I’m trying to do a custom query based on a value selected in the ACF for a backend field.
However i will also need filters for the output of that loop, and while adding the custom query through this guide: Adding any Custom WP_Query loop to Bricks' Query Loop - BricksLabs
Works, the filters give me “Error Query object type not supported”. So, how would I add it to the built-in query editor for the loop.
Hello ? could I get some help. From everything i’ve checked the run_new_query function returns a correct array, in the correct order. But calling it in the query editor doesn’t work, and neither does just pasting the code in the query editor
I think you might forget about declaring the /bricks/setup/control_options
Something like : add_filter(‘bricks/setup/control_options’, function($control_options) { $control_options[‘queryTypes’][‘my_new_query_type’] = esc_html__(‘My new WP Query’, ‘text-domain’); return $control_options; });