Skip Navigation

[Resolved] I need to build a menus system for a wedding restaurant

This support ticket is created 6 years, 1 month 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 – 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)

This topic contains 8 replies, has 2 voices.

Last updated by israelP 6 years, 1 month ago.

Assigned support staff: Luo Yang.

Author
Posts
#469830

I need to create a system to build menus for a wedding restaurant.

Basically, there must be several post types, let’s say, Cold Plates, Hot Plates, Main Plate, Second Plate, Drinks and Deserts. These post types will contain the various plates of each category.

Then, there must be a main Menu Form where the Menu will be formed by adding the information from the above post types (cold plates, hot plates etc.) through drop-downs.

How can I achieve that, please?

Thank you so much.

#470163

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Dear israelP,

There isn't such a feature to customize the nav menu within Views plugin.
Could you describe more details for the question:
there must be a main Menu Form where the Menu will be formed by adding the information from the above post types (cold plates, hot plates etc.) through drop-downs.
What kind of menu form do you need?

When you edit/create a custom post type with the Types plugin, there is an option "show_in_nav_menus":
determine whether this post type is available for inclusion in navigation menus
see our document:
https://toolset.com/documentation/user-guides/create-a-custom-post-type/
and wordpress document:
https://codex.wordpress.org/Function_Reference/register_post_type#show_in_nav_menus
Hope it help

#470166

Dear Luo Yang,

When I say "menu", I don't refer to the nav menu, I mean "Restaurant Menu" (that could be a post type name)

Thank you.

#470205

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

I assume you are going to use one CRED form to create posts of multiple post types (Cold Plates, Hot Plates... ), it is not possible within CRED form, one CRED form can only create posts of one post type.

You can also consider that:
1) Setup only one custom post type "plate", create a custom taxonomy "plate types", with terms:
Cold Plates, Hot Plates, Main Plate ...
2) Then you will be able to setup only one CRED form to create the "plate" post, and display the taxonomy "plate types" as a drop-down menu, see our document:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
single_select=’true’ will only allow a single option to be selected (by default multiple options can be selected)
3) Based on the "plate types" field value, you can display different fields of each plate types in the CRED form:
https://toolset.com/documentation/user-guides/cred-conditional-display-engine/

#470480

Thank you for your update. Anyway, I think it would be better to use a relationship between type posts. What do you think?

I have tried, but the childs are not listed in the parent post in admin, I don't know why.

Thank you.

#470525

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

If you are using parent/child relationships, when you edit a parent post, click button "Screen Options", enable option "Post Relationships (Parent / Child)", then you will be able to see the metabox "Post Relationships", there you can setup the child posts.

#470704

I have done that, but the existing child post types are not listed in the parent metabox. There you can creata new child, but I don't want that. I want to select several from the various existing child post types. How can I achieve that, please?

#470849

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

This is expected result, when you edit a parent post, you can create multiple child posts in the "Post Relationships" metabox.

In your case, I suggest you setup many-to-many relation ships between those two post types, for example: CPT1 and CPT2
Then when you edit a CPT1 post, you can select the existing CPT2 posts, see our document:
Creating and Displaying WordPress Many-to-Many Post Relationships
https://toolset.com/documentation/user-guides/many-to-many-post-relationship/

#470965

Thank you so much for your support.

Best regards.