Title: Shortcode in Filter
Last modified: August 30, 2016

---

# Shortcode in Filter

 *  Resolved [cyberjon](https://wordpress.org/support/users/cyberjon/)
 * (@cyberjon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-filter/)
 * I am trying to filter list by States. I am trying to get the filter value using
   shortcode. Here is the code :
 * [pdb_list filter=”state=[129]”]
 * Where [129] is the state value from Formidable form. [129] outputs the value 
   when used outside the filter. Is it possible to get this value in the filter?
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

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

 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-filter/#post-6816138)
 * To do this, you have to use PHP so the shortcode will be interpreted. You can
   do this in a WP template or use a PHP plugin to include the PHP in your content:
 * `<?php echo do_shortcode( '[pdn_list filter="state=' . do_shortcode('[129]') .'"]');?
   >`
 *  Thread Starter [cyberjon](https://wordpress.org/support/users/cyberjon/)
 * (@cyberjon)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-filter/#post-6816160)
 * Thank you Very Much! Used with Insert PHP and works like a charm!

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

The topic ‘Shortcode in Filter’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [cyberjon](https://wordpress.org/support/users/cyberjon/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/shortcode-in-filter/#post-6816160)
 * Status: resolved