Hello everyone,
I managed to get my custom queries working by using the Query String field (URL-encoded), for example:
post_type=post&posts_per_page=5&orderby=date&order=DESC&wp_grid_builder=wpgb-custom
However, I’d like to use the “Query Vars through JSON” option in Pro Query Builder to inject my parameters directly as JSON, without relying on the URL string.
What I’ve tried:
{
"query_vars": {
"wp_grid_builder": "wpgb-custom"
}
}
Questions:
- Am I using the correct JSON structure for “Query Vars through JSON”?
- Should I be using a different key (e.g.
query_args
) or a different nesting level? - Is there any example or official documentation showing a concrete use case for this JSON option?
Thanks a lot for your help and feedback!