Skip Navigation

[Resolved] best way to register number of pers. CPT for holiday apparatments

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

Problem:

The issue here is that the customer wanted to allow his clients to add apartment capacities to his custom fields. Example if a customer creates an apartment but it can hold more than the standard 1-2 or 3-4 . Then the customer wants the user to add the additional capacities.

Solution:
I would recommend using taxonomies as you can dynamically add more terms to a taxonomy from our CRED form on the frontend.

So if the user creates a new apartment location and the current group size that this apartment offers is not in the list then the user can click on add term and then add a new group size.

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 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.

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 2 replies, has 2 voices.

Last updated by marcov-3 6 years, 10 months ago.

Assisted by: Shane.

Author
Posts
#623390

I am making a website for a holiday appartments search site. I have made CPT with several new fields. One field is the amount of persons an appartment can have. Sometimes it is possible to have more kind of groups. SO 2-4 and 5-7 etc. So one place can have more kind of groups. Would you suggest to use a repeatable field where my client can create more fields? The customers must be able to search in one field for all the groups.
How do I handle such a problem?

Cheers

#623453

Shane
Supporter

Languages: English (English )

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

Hi Marco,

Thank you for contacting our support forum.

Reading through your post i'm not sure I follow 100% what it is that you want to achieve.

Is it that you want to be able to set the amount of persons an apartment can handle?

Also you want your client to set this without updating the custom fields correct?

Or 1 apartment can be apart of a 2-4 and 5-7 group ?

If this is so then I would recommend using taxonomies as you can dynamically add more terms to a taxonomy from our CRED form on the frontend.

So if the user creates a new apartment location and the current group size that this apartment offers is not in the list then the user can click on add term and then add a new group size.

Please let me know if this helps.
Thanks,
Shane

#623586

Hi Shane,

That's so obivious! Deuhh. Why didn't I see that! Thanks man! Great help