Skip Navigation

[Resuelto] Create a time field

This support ticket is created hace 4 años, 2 meses. 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)

Etiquetado: 

This topic contains 4 respuestas, has 2 mensajes.

Last updated by andresB-4 hace 4 años, 2 meses.

Assisted by: Shane.

Autor
Mensajes
#1480899

Hi! I need to create a recipes page and one of the searchable fields should be "Preparation time".
I will need to feature this information on front end in HH:MM format. Together with this, I need to create a search field to filter results depending on "Preparation time". This means that, for example, someone should be able to search recipes that could done between 45min and 1 hour.
My 2 questions here are
1) how to define this "Preparation time" field in Minutes and Hours.
2) how to create a search field with this searchable criteria: "Between 1 and 15 minutes", "Between 15 and 30 minutes", "Between 30 and 45 minutes", "Between 45 and 1hour", "Between 1hour and 2 hours". Understanding that recipes will be filtered

Thanks a lot in advance!

#1481039

Shane
Supporter

Languages: Inglés (English )

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

Hi Andres,

Thank you for getting in touch.

Unfortunately we don't have a time field.

What you will need to do is to have a specific range of checkbox fields where the user can select the time it takes to prepare the meal.

These options would encompass the selections that you will need to filter for.

So for e.g if a Meal takes a preparation time of 15 minutes then the user will select 15 minutes from their checkbox options when creating the post.

On the checkbox field defined in types it would be best to give the user these options "Between 1 and 15 minutes", "Between 15 and 30 minutes", "Between 30 and 45 minutes", "Between 45 and 1hour", "Between 1hour and 2 hours".

Please let me know if this helps.
Thanks,
Shane

#1482773

Hi Shane,
Maybe your suggestion can work. I will work on your idea and see how it works.
1- I will create a text custom field "exact-time" to write down the exact time that the recipe will take (just to show in front end)
2- I will create a custom taxonomy "between XX and XX minutes" with the time ranges (this will filter the recipe)
3- In front end I will display the "exact-time" as part of the recipe description, and will use the custom taxonomy "between XX and XX minutes" to filter results.
Thanks a lot!

#1482951

Shane
Supporter

Languages: Inglés (English )

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

Hi Andres,

Yes this will work perfectly. Since the users will be able to add their exact preparation time as well as select the range that the preparation time falls into.

This would definitely help with the filtering since the users will be able to see the exact time plus filter by a time range.

If there are no further questions or queries on this then you can go ahead and mark this as resolved once you're finished.

Thanks,
Shane

#1483009

My issue is resolved now. Thank you!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.