Hi i have installed the Twig plugin into my test Wordpress site and also API Endpoints.
I can query the database and return xml.
I now wish to add a query string and use the parameters as predicates in the SQL Query.
I have looked here https://codex.wordpress.org/Function_Reference/get_query_var
and can see how to do it in php but would like to access the var from the SQL query directly.