Skip Navigation

[Resolved] Give users the option to add cities and regions to an existing Country Structure

The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.

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

Problem: I have a CRED form where Users can select from certain Cities and Regions. I would like to offer the ability to add Cities and Regions if they do not yet exist.

Solution: A CRED form can only create or modify a single post at a time, so it's not possible to add a City or Region on-the-fly like this. It would require a separate CRED form. One alternative is to use taxonomies instead of custom fields. Taxonomy terms can be added directly in a CRED form.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Author
Posts
#604333
Screenshot 2018-01-08 12.58.14.png

Guten Tag,

I would like to recreate an existing worldwide directory and like to use toolset.

Unfortunately, I haven’t found a solution to the following problem:

The ads are created by the users themselves, they must be listed according to the following scheme:

Country / Region(state) / City

Since it is impossible to pre-populate all regions and cities worldwide it must be possible for the users to type the region (state) and city (town).

I have reviewed all the reference pages, unfortunately, I found no function where the user himself can add extra information’s to an such an existing Structure.

Here an Example (in German) what i like to realize with toolset
hidden link (Login.email: user Login.pass: user)
see: >Land* >Region* >Stadt*

Hope somebody have an Idea how I can realize this with toolset.

#604473

Hi, CRED does not offer something exactly like this, but offers some similar features in a different experience. CRED gives a User the ability to select from predefined options for custom fields. If cities and regions are taxonomies, then CRED will give Users the ability to select from existing terms or add their own term. The interface to add or select terms can be seen here on this test site I have set up:
hidden link
The Categories and Tags inputs show how hierarchical and flat taxonomy terms are managed in CRED.
However, if cities and regions are custom post types, then the only way to add options to these lists with CRED is to use a separate form. A single CRED form can only add or edit a single post.

Let me know if you have additional questions about that and I will be glad to go into more detail.

The forum ‘Types Community Support’ is closed to new topics and replies.