Title: Filter chaining and options values
Last modified: May 23, 2019

---

# Filter chaining and options values

 *  Resolved [tommasogavioli](https://wordpress.org/support/users/tommasogavioli/)
 * (@tommasogavioli)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/filter-chaining-and-options-values/)
 * Hi, i’m so very sorry to ask for some help again but i’m struggling with two 
   small things which are driving me crazy.
 * FILTERING
    I have two pages with two field groups based multiple form. In one
   page i need to see the results from the form_type=A, in the other page =B. this
   is my short code:
 * [pdb_list filter=”approved=yes” filter=”form_type=avviso-53-operatori-economici”
   fields=”ID,nome_ditta,codice_fiscale,partita_iva”]
 * As you can see, i need (absolutely) to show only the approved results, coming
   from that specific form_type with these fields: instead every result is shown,
   APPROVED OR NOT. I have some records in my list, to try out some things. Some
   of them are approved, some others are not. Every result is shown.
    How can i 
   chain this filter and how can i make it work?
 * FIELD OPTIONS
    I have this huge form with a lot of multiple checkbox choices.
   This is an example of the options of one field: E01: ASSISTENZA TECNICA ALLA 
   GESTIONE E CONTROLLO DEI FONDI COMUNITARI – FONDI NAZIONALI – FONDI REGIONALI::
   E01, E02: SUPPORTO ALLO SVILUPPO PARTENARIALE – RELAZIONI INTERNAZIONALI – PROGETTAZIONE
   EUROPEA::E02, E03: MONITORAGGIO::E03
 * As you can see i have long value titles and short values (ex. 03). The value 
   is correctly recorded in the database. But what I’d like to show in the list 
   page for users, instead of the value title (too long) is only the value (03).
   Is there a way to do that using the shortcode?
 * Thank you very much
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffilter-chaining-and-options-values%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/filter-chaining-and-options-values/#post-11565767)
 * First, for your shortcode filters, you need to chain the two filters, you cannot
   have more than one filter attribute in a shortcode.
 * [List Shortcode Filters](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/list-shortcode-filters/)
 * For your second question, you need to use a custom template for your list display
   to do something like this. You would need to look for the field you want to change
   and then show the value instead of the value title.
 * [Using Participants Database Custom Templates](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/pdb-templates/)
 *  Thread Starter [tommasogavioli](https://wordpress.org/support/users/tommasogavioli/)
 * (@tommasogavioli)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/filter-chaining-and-options-values/#post-11567450)
 * Thank you, but that is the problema. I cannot chain them.
    The ampersend is not
   linking the two: i’m absolutely sure that i’m wrong but i can’t understand where
   i make the mistake.
 * that is my shortcode to show results from one specific form type that are approved(
   AND AND):
 * [pdb_list filter=”approved=yes&form_type=avviso-53-operatori-economici” fields
   =”ID,nome_ditta,codice_fiscale,partita_iva”]
 * where is the mistake?
    can anybody suggest a (working) correction?
 *  Thread Starter [tommasogavioli](https://wordpress.org/support/users/tommasogavioli/)
 * (@tommasogavioli)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/filter-chaining-and-options-values/#post-11567548)
 * Nevermind, i solved. When i was pasting the ampercode, i don’t know why, it was
   duplicating it in the code.
    Solved. Thank you.

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

The topic ‘Filter chaining and options values’ 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/)

## Tags

 * [field options](https://wordpress.org/support/topic-tag/field-options/)
 * [filtering](https://wordpress.org/support/topic-tag/filtering/)

 * 3 replies
 * 2 participants
 * Last reply from: [tommasogavioli](https://wordpress.org/support/users/tommasogavioli/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/filter-chaining-and-options-values/#post-11567548)
 * Status: resolved