Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Adding Widget Areas to the Front Page

mat
mat
14,216 Points

How to create a dynamic Restaurant Menu

Hi, Let's say I have to create a page with a dynamic restaurant menu in Wordpress, what's the best way to do that? plugin? widget? custom fields? How to manage each voice of the menu from the admin page?

Andres Altuve
Andres Altuve
16,274 Points

Hi Matteozaratti,

There are two ways to achieve this, you could use custom post type... To achieve it you should create a custom post type in your functions.php, and then create a custom loop to display your posts. This method will allow you to create a button on your admin area called something like Restaurant Menu or just menu.. The easiest way to create a custom post type is using the following site:

Generate WP

The other way around is to create a page template and use Advance Custom Fields which is free and buy the ACFRepeater plugin, this plugin will allow you to create a list with all the fields you need..

Advanced Custom Fields

ACF Repeater

Hope this helps.

1 Answer

mat
mat
14,216 Points

Perfect, Thanks a lot!