Snillrik Restaurant Wordpress Plugin - Rating, Reviews, Demo & Download

Snillrik Restaurant Preview Wordpress Plugin - Rating, Reviews, Demo & Download
No ratings yet
Free
Follow for free plugins, new theme releases and theme news

Plugin Description

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.

Shortcodes
[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.

[snillrik_restaurant_dishes]
A simple list of dishes sorted under categories. Intended to be a side menu etc.

Filters
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.
add_filter(“snillrik_lm_rewrite_menu”,function($thename){
return “menue”;
},10,1);
add_filter(“snillrik_lm_rewrite_dish”,function($thename){
return “dish”;
},10,1);

Template / html for each dish.
The default template is a bit basic, but it’s easy to style and it’s a good start. If you want to change the html for each dish, use this filter.
add_filter(‘snillrik_restaurant_dishbox_html’, function ($return_html, $atts) {
$post_title = $atts[‘title’];
$tag_strings = $atts[‘tags’];
$content_str = $atts[‘content’];
$ingredients_str = $atts[‘ingredients’];
$price_str = $atts[‘price’];
$thumb = $atts[‘thumb’];
return “

$tag_strings
$post_title
$content_str
$ingredients_str

$price_str

$thumb

“;
}, 10, 2);

Active Contributors

  • Mattias P Kallio (Training)
  • Screenshots


    Reviews & Comments