Title: Passing variables into query
Last modified: August 22, 2016

---

# Passing variables into query

 *  Resolved [melchoir55](https://wordpress.org/support/users/melchoir55/)
 * (@melchoir55)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/passing-variables-into-query/)
 * I see a number of shortcodes which can be included in queries. User Id, page 
   Id, that sort of thing. Our queries need to change depending upon what product
   a user is currently looking at. In other words, we need to pass a product id 
   into our queries.
 * Is this possible? If so, could you point out where? I can’t seem to figure it
   out.
 * [https://wordpress.org/plugins/wp-business-intelligence-lite/](https://wordpress.org/plugins/wp-business-intelligence-lite/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [claudio](https://wordpress.org/support/users/calberti/)
 * (@calberti)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/passing-variables-into-query/#post-5246514)
 * WPBI is able to parse WP specific variables as they are common to all WP install.
   On the other hand product ids that are specific to a given e-commerce plugin 
   cannot be handled. Unless your e-commerce platform uses posts as products. in
   that case you could use {{{post_id}}} to identify products.
 *  [claudio](https://wordpress.org/support/users/calberti/)
 * (@calberti)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/passing-variables-into-query/#post-5246636)
 * Passing variables to query via URL is available with version 1.5 of WPBI Pro 
   and version 2.0 of WPBI Enterprise.
    You can see the details on [http://www.wpbusinessintelligence.com](http://www.wpbusinessintelligence.com)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Passing variables into query’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-business-intelligence-lite_eae8f9.
   svg)
 * [WP Business Intelligence Lite](https://wordpress.org/plugins/wp-business-intelligence-lite/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-business-intelligence-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-business-intelligence-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-business-intelligence-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-business-intelligence-lite/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [claudio](https://wordpress.org/support/users/calberti/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/passing-variables-into-query/#post-5246636)
 * Status: resolved