Skip Navigation

[Gelöst] values & display_values not working

This support ticket is created vor 5 Jahren, 8 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

Dieses Thema enthält 12 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von marcusC-4 vor 5 Jahren, 8 Monaten.

Assistiert von: Minesh.

Author
Artikel
#1217281

Probably user error, but I cannot get the values & display_values to work on this filter. versteckter Link

Here is my shortcode: [wpv-control-post-taxonomy taxonomy="course-discipline" type="select" default_label="All Categories/Disciplines" url_param="wpv-course-discipline" values="csw-mft-mht,exam-prep,occupational-therapy,hand-therapy,physical-therapy,patient-education" display_values="CSW MFT MHT,Exam Prep,Occupational Therapy,Hand Therapy,Physical Therapy,Patient Education"]

#1217397

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Well - when you try to add a taxonomy filter - taxonomy filter does not support the custom value as well as display_values. There is no such feature available as you can see with the following screenshot:
=> versteckter Link

You need to add normal taxonomy filter without value and display_values as its not supported.

#1218258

Ok, thanks for the reply. Is there any way to remove one of the taxonomy options from my dropdown then? I don’t want to display them all.

#1218264

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

which option you want to remove?

#1218267

I want to remove Therapist In Your Pocket from the first dropdown.

#1218273

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Ok - you can add the following JS code to your view's "search and pagination" section's JS box:

jQuery(document).ready(function($) {
 id = jQuery('input[name="wpv-course-discipline"]').attr('id');
jQuery("#"+id +" option[value='therapist-in-your-pocket']").remove();
  
});
#1218280

Thanks for the snippet. I see what you’re going for here, but it isn’t working for me. I’ve tried adding spaces around the + signs and removing them, but nothing is working yet.

#1218286
toolset-screenshot.jpg

Here is a screenshot of my settings.

#1218293

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

Can you try the following - it should be select instead of input:

jQuery(document).ready(function($) {
 id = jQuery('select[name="wpv-course-discipline"]').attr('id');
jQuery("#"+id +" option[value='therapist-in-your-pocket']").remove();
   
});
#1218365

It’s still not working for me. I’ll attach a new screenshot.

#1218367
toolset-screenshot-2.jpg

Updated screenshot.

#1218374

Minesh
Supporter

Sprachen: Englisch (English )

Zeitzone: Asia/Kolkata (GMT+05:30)

That is really strange. Can you please share access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#1221836

My issue is resolved now. Thank you!