Title: URl Variable to Query
Last modified: May 6, 2019

---

# URl Variable to Query

 *  Resolved [michaelennedy1983](https://wordpress.org/support/users/michaelennedy1983/)
 * (@michaelennedy1983)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/url-variable-to-query/)
 * I am trying to filter a Ninja Table based on an SQL call using a URL Variable.
 * IE xxxx.com/tablepage/?deviceid=1
 * this would only show the entries where the deviceid column was equal to 1.
 * I have tried by using the following found at [https://wpmanageninja.com/docs/ninja-tables/miscellaneous/advance-shortcode-usage/](https://wpmanageninja.com/docs/ninja-tables/miscellaneous/advance-shortcode-usage/)
 * using [ninja_tables id=’YOUR TABLE ID HERE’ get_filter=’deviceID’]
 * But the table still shows everything. How do I link the variable to the shortcode
   then to the SQL call?? or to a table filter??
 * Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Support [juniorninja](https://wordpress.org/support/users/mrkevinmiller/)
 * (@mrkevinmiller)
 * [7 years ago](https://wordpress.org/support/topic/url-variable-to-query/#post-11541891)
 * Hello michaelennedy1983,
 * It seems you did it correctly, please report a ticket on our support.
    [https://wpmanageninja.com/support-tickets/](https://wpmanageninja.com/support-tickets/)
 * We will take this from there.
 * Thanks
 * kevin Miller
    Support Manager WP Manage Ninja
    -  This reply was modified 7 years ago by [juniorninja](https://wordpress.org/support/users/mrkevinmiller/).
    -  This reply was modified 7 years ago by [juniorninja](https://wordpress.org/support/users/mrkevinmiller/).

Viewing 1 replies (of 1 total)

The topic ‘URl Variable to Query’ is closed to new replies.

 * ![](https://ps.w.org/ninja-tables/assets/icon-256x256.png?rev=3337819)
 * [Ninja Tables – Easy Data Table Builder](https://wordpress.org/plugins/ninja-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-tables/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [juniorninja](https://wordpress.org/support/users/mrkevinmiller/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/url-variable-to-query/#post-11541891)
 * Status: resolved