PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

using gravity post type for changing restaurant menu

  1. klausdyba70
    Member

    Hi! I am not sure where to look for my problem/question. Maybe someone can help me out if its possible:

    I build a restaurant website. They have a daily changing menu. I dont want the owner to have to change the daily menu in the wordpress backend, so I thought if it's not possible with a gravity post type form to avoid this.

    My idea was to have a gravity form to enter the daily menu/changes. and it takes the content of the form and put it into a "daily-menu-post" automaticlly. Is this possible and what would be the best solution to do it?

    Klaus

    Posted 13 years ago on Monday July 16, 2012 | Permalink
  2. David Peralty

    So would you have him basically re-create the entire menu every day? Or is this just like the daily specials?

    Posted 13 years ago on Monday July 16, 2012 | Permalink
  3. klausdyba70
    Member

    Actually it's a weekly menu they have to change (the restaurant owner, not the user). So the page which is showing the menu (a post) needs to be changed by them. I formatted the menu-text a lot with paddings, line height etc. I know if they try to change that in the post-editor they will accidentally change something so I thought i could have a form with: date; starters main dish, etc. which somehow replaces the weekly menu-post content. I think it could work, but I don't know how to put the content of the form into the post...

    Posted 13 years ago on Monday July 16, 2012 | Permalink
  4. David Peralty

    Gravity Forms is not set-up to edit WordPress posts. It can create posts, but then the link to that post would change all the time. I guess there are ways to make this work, but it would probably be very complex.

    How skilled are you with WordPress and PHP because, even with Gravity Forms helping you collect information, you would have to find ways to then grab that information and put it into your page, and that is beyond what Gravity Forms can do currently.

    I would potentially have it set-up so that a form creates a post with a bunch of custom fields. Then I would have a template specifically for that category of posts but set-up to only grab the single latest one. Then I would create a page with that template.

    Then, each day, the menu is submitted through Gravity Forms, Gravity Forms creates a post, and that post is pulled into your menu page, and styled appropriately.

    The advantage of this is that you would also have a cool archive of menu's. Eventually, if you want daily menu's you could modify your code and have a Monday Menu, Tuesday Menu, etc... without too much much work.

    Posted 13 years ago on Monday July 16, 2012 | Permalink
  5. klausdyba70
    Member

    Thanks for the info! I don't know much about php, but at least I know what is possible ad what not!

    Thanks again!

    Klaus

    Posted 13 years ago on Monday July 16, 2012 | Permalink
  6. David Peralty

    There are plenty of WordPress developers out there that could do this for you relatively inexpensively. Just remember, Gravity Forms is focused on collecting user data and if you think of it from that mindset, you'll quickly understand both how useful it can be and where its potential limitations currently are.

    Posted 13 years ago on Monday July 16, 2012 | Permalink