[Pro Query Builder] Using “Query Vars through JSON” instead of Query String

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:

  1. Am I using the correct JSON structure for “Query Vars through JSON”?
  2. Should I be using a different key (e.g. query_args ) or a different nesting level?
  3. Is there any example or official documentation showing a concrete use case for this JSON option?

Thanks a lot for your help and feedback!

Hey @Jloupf,

Thanks for writing in!

You can try using this instead:

{
    "wp_grid_builder": "wpgb-custom"
  }

Kindly let us know how it goes.