Skip Navigation

[Resolved] Filter view of selections from auto-populated checkboxes field

This thread is resolved. Here is a description of the problem and solution.

Problem:
The problem in this post essentially comes down to filtering a view by a custom field list value.

Solution:

Views can be filtered by several Attributes which includes a shortcode attribute, where you can pass the value of your custom field to the view.
https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/

This support ticket is created 6 years, 11 months ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 18 replies, has 3 voices.

Last updated by curtZ 6 years, 11 months ago.

Assisted by: Shane.

Author
Posts
#598550

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

Thanks for the credentials.

I was able to have a look and it seems that you were using the wpv-post-field shortcode to provide the information but I change it to use the types shortcode and it should now be working normally.

Thanks,
Shane

#598705
Screen Shot 3B.png
Screen Shot 3A.png
Screen Shot 2B.png
Screen Shot 2A.png
Screen Shot 1B.png
Screen Shot 1A.png

Shane,

Thank you for looking into this and continuing from Christian. We think very highly of you both!

So, two items are still a problem:

1. The checkboxes do now filter in the front end, however only the last (in order) of the selected Providers show in the Practice cpt. (the screenshots show that when various Providers are selected, only the last in order is displayed in Practice)

2. If the Provider ID field is necessary to have for this to work, we do not want it to be displayed in the front end.

Thank you in advance!

#598987

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Curt,

1. I took another look at this and it seems that you were using the update_post_meta function instead of the add_post_meta. It should now be working correctly.

2. For the provider ID its not needed to be printed out on the page. I suspect that this was just for testing purposes but you can remove it from the template.

Everything should now be working fine. If there are any issues please let me know.
Thanks,
Shane

#599050

Working perfectly Shane!

Thanks so much for your help!