It returns: Database query result (as string), or null on failure.
Example 1
:
Code
:
XHTML
1
2
3
[query.get_vardump=1]
SELECTpost_titleFROM`wp_posts`
[/query.get_var]
Output
:
Description
:
The above example code will output the SQL query result as a string shown above. The query has return post_title value of very first object. We can apply order by filter if we are required the last var