Title: Restaurant
Author: Justin Tadlock
Published: <strong>2014 年 2 月 18 日</strong>
Last modified: 2014 年 2 月 18 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Restaurant

 由 [Justin Tadlock](https://profiles.wordpress.org/greenshady/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/restaurant/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/restaurant/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/restaurant/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/restaurant/#developers)

 [技術支援](https://wordpress.org/support/plugin/restaurant/)

## 外掛說明

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.

## 螢幕擷圖

 * [[
 * Restaurant menu admin screen
 * [[
 * Ravintola theme using the plugin

## 安裝方式

 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_.

## 常見問題集

  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.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Restaurant〉的開發相關工作。

參與者

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

[將〈Restaurant〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/restaurant)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/restaurant/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/restaurant/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/restaurant/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/restaurant/)。

## 變更記錄

### Version 1.0.0

 * Everything is new!

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **12 年前**
 *  啟用安裝數 **40+**
 *  WordPress 版本需求 ** 3.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **3.7.41**
 *  語言
 * [English (US)](https://wordpress.org/plugins/restaurant/)
 * 標籤:
 * [custom post type](https://tw.wordpress.org/plugins/tags/custom-post-type/)[restaurant](https://tw.wordpress.org/plugins/tags/restaurant/)
   [taxonomy](https://tw.wordpress.org/plugins/tags/taxonomy/)
 *  [進階檢視](https://tw.wordpress.org/plugins/restaurant/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/restaurant/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/restaurant/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/restaurant/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](http://themehybrid.com/donate)