The idea is that you can create a bunch of different dishes, with images, price, ingredients etc… Then these are used to make up menus that are easily changed from day to day. So a particular use would be a lunch menu where you would want the same menu and shortcode but you want to change dishes every day. You could also have several menus, maybe one for each day of the week.
There are also categories for the different dishes, so if you have like Meat, Fish, Veg, Ice cream etc, the menu will be in that order.
So, the plugin adds th post types Dishes and Menus that can be added and edited the wordpress way. Then you can use the widget to add specific dishes and a shortcode for the menu on a page.
[snillrik_restaurant_menu menuid=”42″ showcategory=1|0 hideimage=1|0 linktitle=1|0 category=”” orderby=”menu_order”]
If you want to not show the category text chose 0 and if you want to link to the dish page chose 1 etc. menu_order is the order param set in admin on each dish. the orderby can be set to common wp orderbys too, like date or title.
A simple list of dishes sorted under categories. Intended to be a side menu etc.
They default to snillrik_lm_menu and snillrik_lm_dish witch might not be tha pretty, but it’s unique… So if you want the urls to be something like /dishes/ or /food/, use these.
- Upload the plugin folder to the ‘/wp-content/plugins/’ directory of your WordPress site,
- Activate the plugin through the ‘Plugins’ menu in WordPress,
Do I need to have a category for the dishes
Yes. I will fix this in a later version, but for now the menues list all the categories and the foods belonging to that category under it.
Where can I report bugs, leave my feedback and get support?
Our team answers your questions at:
توسعه دهندگان و همکاران
“Snillrik Restaurant” نرم افزار متن باز است. افراد زیر در این افزونه مشارکت کردهاند.مشارکت کنندگان
Making single dish page a bit more styleable
fixing a bit more easy to use css-classes etc.
(also a bit hidden paramter ‘menu_style’ => ‘default’, // default, fancy, it’s not that big of a differance, but it’s to make it more usable for non-webbnerds later.)
Added parameter for showing or hiding images in shortcode: hideimage=1|0
Some styling and minor stuff (like space between price and sign)
Testing version 6.1.1 and some minor style fixes.
I got a bunch of suggestions, tips and some testing, so there are a lot of updates now. 🙂
If price is 0 nothing is shown instead.
Fixed category naming bug when using dishes shortcode
Fixed bug in translations.
Added filters for rewriting the urls (as displayed in readme)
Re-thought the categories and tags and it now works more like commonly in WP.
Added a shortcode generator on each menu for when using it on pages.
Added tags to the only template that currently exists.
Got a bunch of cool ideas from Jarko, so thanks for that. 🙂
Test of WP 6.0 and making it a bit more easy to style the menues.
Made it a bit easier to style the menu, it’s now css flex.
Some more escaping output and some fix, trix and just some TLC.
Escaping text and securing output to browser.
Testing for 5.8, no updates
Making code a bit more consistant, and prettified a bit too.
Made the menu-urls show dishes but the shortcodes in pages is probably still the easiest way to show menus.
And minor bugfixes.
Some text changes.
Minor bugfix in shortcode showing title when showcategory set to string “true”.
Added parameter showcatdescription to hide description text even if set in category
Minor update, mostly just a version check for WP 5.7