Title: Restaurant
Author: Justin Tadlock
Published: <strong>18. februar, 2014</strong>
Last modified: 18. februar, 2014

---

Søg plugins

![](https://ps.w.org/restaurant/assets/banner-772x250.png?rev=860372)

Dette plugin **er ikke blevet testet med de seneste 3 større udgivelser af WordPress**.
Det vedligeholdes eller understøttes muligvis ikke længere og kan have kompatibilitetsproblemer,
når det bruges med nyere versioner af WordPress.

![](https://s.w.org/plugins/geopattern-icon/restaurant_e0e3ea.svg)

# Restaurant

 Af [Justin Tadlock](https://profiles.wordpress.org/greenshady/)

[Download](https://downloads.wordpress.org/plugin/restaurant.1.0.0.zip)

 * [Detaljer](https://da.wordpress.org/plugins/restaurant/#description)
 * [Vurderinger](https://da.wordpress.org/plugins/restaurant/#reviews)
 *  [Installation](https://da.wordpress.org/plugins/restaurant/#installation)
 * [Udvikling](https://da.wordpress.org/plugins/restaurant/#developers)

 [Support](https://wordpress.org/support/plugin/restaurant/)

## Beskrivelse

A plugin for setting up small restaurant sites. This plugin was created as a simple
base for theme authors to build custom restaurant themes. It also serves as a foundation
for other plugins to build from and add restaurant-related features. This plugin
merely handles a restaurant “menu”. In particular, it creates a ‘restaurant_item’
post type and ‘restaurant_tag’ taxonomy. Other plugins should be created to extend
the menu functionality.

### Themes

Currently, the following themes integrate with the Restaurant plugin:

 * [Ravintola](http://devpress.com/themes/ravintola/)

### Professional Support

If you need professional plugin support from me, the plugin author, you can access
the support forums at [Theme Hybrid](http://themehybrid.com/support), which is a
professional WordPress help/support site where I handle support for all my plugins
and themes for a community of 40,000+ users (and growing).

### Plugin Development

If you’re a theme author, plugin author, or just a code hobbyist, you can follow
the development of this plugin on it’s [GitHub repository](https://github.com/justintadlock/restaurant).

### Donations

Yes, I do accept donations. If you want to buy me a beer or whatever, you can do
so from my [donations page](http://themehybrid.com/donate). I appreciate all donations,
no matter the size. Further development of this plugin is not contingent on donations,
but they are always a nice incentive.

## Skærmbilleder

[⌊Restaurant menu admin screen⌉⌊Restaurant menu admin screen⌉[

Restaurant menu admin screen

[⌊Ravintola theme using the plugin⌉⌊Ravintola theme using the plugin⌉[

Ravintola theme using the plugin

## Installation

 1. Uzip the `restaurant.zip` folder.
 2. Upload the `restaurant` folder to your `/wp-content/plugins` directory.
 3. In your WordPress dashboard, head over to the _Plugins_ section.
 4. Activate _Restaurant_.

## FAQ

  Why was this plugin created?

The purpose of the Restaurant plugin is to create a base for building restaurant
Web sites. At its core, it’s a plugin for mom-and-pop restaurants to handle basic
functionality like putting their menu online. However, it should serve as a base
for more advanced functionality.

  How do I use the plugin?

The restaurant menu functionality works just like posts and pages in WordPress. 
You’ll get a new “Restaurant” menu in the admin. From there, you can manage your
restaurant. Add-on plugins may also add new items to this menu.

  I’m getting a 404 when viewing menu items.

This can happen, but don’t worry. Simply visit the “Settings > Permalinks” page 
in your WordPress admin. This will flush the rewrite rules and correct the problem.
Just visit that admin screen. There’s no need to save.

  What post type and taxonomy names are used?

 * `restaurant_item` – Post type name for menu items.
 * `restaurant_tag` – Taxonomy name for tags.

  Can I create custom templates for this in my theme?

Yes. Absolutely. The following templates are useful:

 * `single-restaurant_item.php` – Single post view of a restaurant item.
 * `archive-restaurant_item.php` – Archive view of all restaurant items.
 * `taxonomy-restaurant_tag.php` – Restaurant tag archive view.

  How do I show the menu title in my theme?

This is a basic WordPress function. You simply need to use this code in your template:

    ```
    <?php post_type_archive_title(); ?>
    ```

  How do I show the menu description in my theme?

This is also basic WordPress functionality. Simply add this code to your template:

    ```
    <?php echo get_post_type_object( get_query_var( 'post_type' ) )->description; ?>
    ```

  Will you add feature X?

I highly encourage feedback on all features. The purpose of this plugin is to be
extremely lightweight and have minimal features. However, more advanced features
will be added in the form of add-on plugins. I already have several in mind, but
I’d really love to hear from you.

  Can I create an add-on plugin?

Certainly. If you’re a plugin developer, please get in touch with me. I want to 
build a robust developer and user community around this plugin. It has a ton of 
potential, especially when we start talking about all the cool features that we 
can add onto this and make for a great restaurant experience.

## Anmeldelser

Der er ingen anmeldelser for denne widget.

## Bidragsydere & udviklere

“Restaurant” er open source-software. Følgende personer har bidraget til dette plugin.

Bidragsydere

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

[Oversæt “Restaurant” til dit eget sprog.](https://translate.wordpress.org/projects/wp-plugins/restaurant)

### Interesseret i udvikling?

[Gennemse koden](https://plugins.trac.wordpress.org/browser/restaurant/), tjek [SVN repository](https://plugins.svn.wordpress.org/restaurant/),
eller abonner på [udviklerloggen](https://plugins.trac.wordpress.org/log/restaurant/)
via [RSS](https://plugins.trac.wordpress.org/log/restaurant/?limit=100&mode=stop_on_copy&format=rss).

## Ændringslog

### Version 1.0.0

 * Everything is new!

## Meta

 *  Version **1.0.0**
 *  Senest opdateret **12 år siden**
 *  Aktive installationer **40+**
 *  WordPress-version ** 3.7 eller højere **
 *  Testet op til **3.7.41**
 *  Sprog
 * [English (US)](https://wordpress.org/plugins/restaurant/)
 * Tags
 * [custom post type](https://da.wordpress.org/plugins/tags/custom-post-type/)[restaurant](https://da.wordpress.org/plugins/tags/restaurant/)
   [taxonomy](https://da.wordpress.org/plugins/tags/taxonomy/)
 *  [Avanceret visning](https://da.wordpress.org/plugins/restaurant/advanced/)

## Bedømmelser

 5 ud af 5 stjerner.

 *  [  2 5-stjernet anmeldelser     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=5)
 *  [  0 4-stjernet anmeldelser     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=4)
 *  [  0 3-stjernet anmeldelser     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=3)
 *  [  0 2-stjernet anmeldelser     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=2)
 *  [  0 1-stjernet anmeldelser     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/restaurant/reviews/#new-post)

[Se alle anmeldelser.](https://wordpress.org/support/plugin/restaurant/reviews/)

## Bidragsydere

 *   [ Justin Tadlock ](https://profiles.wordpress.org/greenshady/)

## Support

Har du noget at sige? Har du brug for hjælp?

 [Vis supportforum](https://wordpress.org/support/plugin/restaurant/)

## Donér

Vil du gerne støtte udviklingen af dette plugin?

 [ Donér til dette plugin ](http://themehybrid.com/donate)