Skip Navigation

[Resolved] Need to check 200 boxes to create CPT entry, is there a better way?

This support ticket is created 3 years, 5 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.

Our next available supporter will start replying to tickets in about 0.61 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Hong_Kong (GMT+08:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by kristofG 3 years, 5 months ago.

Assisted by: Luo Yang.

Author
Posts
#2094197

We need to create a Search+List of Digital Signing Methods. Each country (200) will have it's specific digital signing methods.
For instance, Belgium will have methods 1, 2, 5, 9, 21 checked. France will have methods 1,4, 5, 6, 20.

We were planning to create a CPT "Signing Method" (there are currently 40) and then try to link the relevant countries (up to 200) to each method. But for 8 methods, all 200 countries need to be checked, this will be an administrative and time consuming nightmare. Let alone create the 200 countries dropdown for the frontend.

We thought about creating the countries that have specific methods and then use a "Global" setting for methods that are relevant for all 200 countries, but the customer needs to be able to select his/her country from the Search Box.

What would be the quickest and most efficient thing to do?

#2094213

Hello,

In my opinion, you can setup the "Country" as a custom taxonomy:
https://toolset.com/course-lesson/creating-a-custom-taxonomy/
Just like WordPress built-in taxonomies "Categories" and "Tags", it is easy to manage, extend and searchable.

More help:
Using Custom Fields vs. Taxonomy in WordPress
https://toolset.com/course-lesson/using-custom-fields-vs-taxonomy/

#2094215

Thanks for the quick reply.
I was also thinking towards Taxonomies, but then we'll still have to check 200 boxes for those 8 signing methods, right?

#2094221

You can setup "Country" as a Hierarchical taxonomy:
https://toolset.com/course-lesson/creating-a-custom-taxonomy/#using-hierarchical-or-flat-taxonomy

With parent/child terms, for example:
- All
---- USA
----- UK
...

If you check term "All", it will take effect for all sub-terms when you query the results.

#2094411

Thank you, you have been most helpful!

#2094701

Hi, sorry, I closed this ticket too soon.
At first the "All" option looked like a viable solution. But when I check All for a specific Signing Method, then the individual Country no longer shows in the Dropdown.
I still need to be able to select the country and then show the Signing Methods specific to that country OR the Signing Methods to are applicable to ALL countries.

There are 8 Signing Methods that apply to ALL countries and 2 that are specific to Belgium. I need to see Belgium in the Dropdown and that selection should give 10 results.
You can see the example here hidden link

#2095231

Q1) I still need to be able to select the country and then show the Signing Methods specific to that country OR the Signing Methods to are applicable to ALL countries.
You can edit the post view, in section "Custom Search Settings", enable option "Let me choose individual settings manually"-> "Always show all values for inputs"

Q2) I need to see Belgium in the Dropdown and that selection should give 10 results.
I have tried it in my localhost with a fresh WP installation + the latest version of Toolset plugins, it works fine, I can get all correct results, so the problem you mentioned above is abnormal, please try these:

1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

4) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#2095609

Hi,
I have found a small plugin that allows us to select ALL taxonomy terms at once.
What you suggested for Q1 did not work, as a Signing Method that had the Taxonomy ALL did not show up for any specific country. Your solution made sure that all countries appeared in the dropdown, but it did not actually link ALL to each and every country, so the results for Egypt for example were still 0, although we had selected the ALL parent taxonomy.

All plugins were up to date, and the same behaviour was visible in minimal setup. The issue again was that the ALL taxonomy was just 1 individual taxonomy term and not a substitute for all countries. The ALL taxonomy term was not equal to 200 countries selected. Each country has to be manually and separately checked for those global Signing Methods. But thanks to that small plugin, that saved us 8 x 200 clicks.
Result: hidden link