Title: SEO Recipe Snippets
Author: Waterloo Plugins
Published: <strong>2015 年 11 月 14 日</strong>
Last modified: 2019 年 8 月 31 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/recipe-snippets/assets/icon-256x256.png?rev=2149051)

# SEO Recipe Snippets

 作者：[Waterloo Plugins](https://profiles.wordpress.org/waterloo-plugins/)

[下载](https://downloads.wordpress.org/plugin/recipe-snippets.zip)

 * [详情](https://cn.wordpress.org/plugins/recipe-snippets/#description)
 * [评价](https://cn.wordpress.org/plugins/recipe-snippets/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/recipe-snippets/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/recipe-snippets/#developers)

 [支持](https://wordpress.org/support/plugin/recipe-snippets/)

## 描述

Enables Rich Snippets for search engines. Show recipe name, rating, image, preparation
time, and more on Google’s search results.

This plugin allows 1 recipe per post. For example, to set the preparation time of
your recipe post, add the following shortcode into your post:
 [recipe type=”prepTime”]
1 hour and 45 minutes[/recipe]

All supported properties with examples:

 * name
    - The name of the dish.
 * image
    - URL of an image of the dish being prepared.
 * description
    - A short summary describing the dish.
 * rating
    - A numerical rating for the item.
 * ratingCount
    - The count of total number of ratings.
 * prepTime
    - The length of time it takes to prepare the recipe for dish.
 * cookTime
    - The time it takes to actually cook the dish.
 * totalTime
    - The total time it takes to prepare the cook the dish.
 * yield
    - The quantity produced by the recipe. For example: number of people served,
      or number of servings.
 * instructions
    - The steps to make the dish.
 * ingredient
    - An ingredient used in the recipe. (can have multiples)

These properties will be used by search engines and other services to serve better
content to your users. If you want to add a property but you don’t want to display
the property, you can add `display="none"`. For example:
 [recipe type=”description”
display=”none”]You can see this on Google, but not on my blog[/recipe]

Here’s an example of a fully annotated post:
 [recipe type=”name”]Grandma’s Holiday
Apple Pie[/recipe]

 [recipe type=”image” display=”none”]apple-pie.jpg[/recipe]
 Published: [recipe 
type=”datePublished”]November 5, 2009[/recipe] [recipe type=”description”]This is
my grandmother’s apple pie recipe. I like to add a dash of nutmeg.[/recipe]

    ```
    [recipe type="rating"]4.0[/recipe] stars based on
    [recipe type="ratingCount"]35[/recipe] reviews

    Prep time: [recipe type="prepTime"]30 min[/recipe]
    Cook time: [recipe type="cookTime"]1 hour[/recipe]
    Total time: [recipe type="totalTime"]1 hour 30 min[/recipe]
    Yield: [recipe type="yield"]1 9" pie (8 servings)[/recipe]

    Ingredients:
    [recipe type="ingredient"]Thinly-sliced apples: 6 cups[/recipe]
    [recipe type="ingredient"]White sugar: 3/4 cup[/recipe]
    ...

    Directions:
    [recipe type="instructions"]
    1. Cut and peel apples
    2. Mix sugar and cinnamon. Use additional sugar for tart apples.
    ...
    [/recipe]
    ```

## 屏幕截图

 * [[
 * A Google search result with rich recipe snippets

## 安装

 1. Upload `recipe-snippet.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Place shortcodes in your post

## 常见问题

  Why aren’t the Rich Snippets showing up in Google’s search results?

It takes a few days to a few weeks for Google to update your site. Also, Google 
doesn’t display Rich Snippets for all sites or all searchs. For example, if you 
rate every recipe 5/5, then Google probably won’t show the rating.

  How can I tell if Rich Snippets are set up correct?

Enter your blog post’s URL here: https://developers.google.com/structured-data/testing-
tool/

## 评价

![](https://secure.gravatar.com/avatar/636190f873b8bd9723db9af20486ff4b0ce1d72f5b3a393f4417c86fcbbf6968?
s=60&d=retro&r=g)

### 󠀁[Simple and Very good](https://wordpress.org/support/topic/simple-and-very-good-4/)󠁿

 [kbcelik](https://profiles.wordpress.org/kbcelik/) 2016 年 9 月 25 日

Simple and Very good

![](https://secure.gravatar.com/avatar/7f1687f0d60a2a7c364f5ddf7dcd7b7bf78234909698894668d07815579e4000?
s=60&d=retro&r=g)

### 󠀁[Very good](https://wordpress.org/support/topic/very-good-1203/)󠁿

 [Waterloo Plugins](https://profiles.wordpress.org/waterloo-plugins/) 2016 年 9 
月 3 日

It actually showed up on Google!

 [ 阅读所有2条评价 ](https://wordpress.org/support/plugin/recipe-snippets/reviews/)

## 贡献者及开发者

「SEO Recipe Snippets」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Waterloo Plugins ](https://profiles.wordpress.org/waterloo-plugins/)

[帮助将「SEO Recipe Snippets」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/recipe-snippets)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/recipe-snippets/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/recipe-snippets/)，或通过[RSS](https://plugins.trac.wordpress.org/log/recipe-snippets/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/recipe-snippets/)。

## 更新日志

#### 1.0.1

 * Clearer instructions

#### 1.0

 * Initial

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **40+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/recipe-snippets/)
 * 标签
 * [google](https://cn.wordpress.org/plugins/tags/google/)[Recipe](https://cn.wordpress.org/plugins/tags/recipe/)
   [rich snippets](https://cn.wordpress.org/plugins/tags/rich-snippets/)[search engine optimization](https://cn.wordpress.org/plugins/tags/search-engine-optimization/)
   [seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/recipe-snippets/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  2 条 5 星评价     ](https://wordpress.org/support/plugin/recipe-snippets/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/recipe-snippets/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/recipe-snippets/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/recipe-snippets/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/recipe-snippets/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/recipe-snippets/reviews/)

## 贡献者

 *   [ Waterloo Plugins ](https://profiles.wordpress.org/waterloo-plugins/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/recipe-snippets/)