Tagged: custom_query
I’ve been able to extend my queries through the avf_template_builder_shortcode_elements filter, but it is still limited. I’ve noticed that most of the modules (slider, magazine, etc.) have an array variable $params[‘custom_query’]).
It would be great if this were accessible, without having to make my own modules.
Here’s a thought. Using the same principal used in the avf_template_builder_shortcode_elements filter, add a textarea field where you could enter your own queries. Then, in the shortcodes, get the value for the custom query textarea, and use it for $params[‘custom_query’]. The way your code is currently written, this should supersede any other query in the shortcode.
Hey iHuman!
Thank you for using Enfold.
What modifications are you trying to add to the query? Posts elements such as the magazine or blog posts elements have their own filter. Use this filter to adjust or modify the query of the element. Look for the query_entries function in the blog.php or the magazine.php file.
Best regards,
Ismael