Title: Custom Etsy Widget
Author: jcoxwell
Published: <strong>2010 年 1 月 18 日</strong>
Last modified: 2010 年 10 月 28 日

---

搜索插件

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

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

# Custom Etsy Widget

 作者：[jcoxwell](https://profiles.wordpress.org/jcoxwell/)

[下载](https://downloads.wordpress.org/plugin/etsy-widget.1.0.8.zip)

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

 [支持](https://wordpress.org/support/plugin/etsy-widget/)

## 描述

This plugin adds a sidebar widget that displays a grid of thumbnails linking to 
items in an etsy store. The user can select the number of rows and columns to display.
The results are similar to Etsy Mini but since it doesn’t use flash or an iframe
the theme sidebar style is inherited. Users can also customize the display by adding‘
etsy’ css class definitions to their theme style sheet.

You can choose to show the most recent items or a random set on each load.

This plugin has only been tested on linux, but I can’t think of any reason why it
wouldn’t work on windows as well.

You can see it running at [blog.cheyenneweil.com](http://blog.cheyenneweil.com).

This plugin requires PHP5.

The term ‘Etsy’ is a trademark of Etsy, Inc. This application uses the Etsy API 
but is not endorsed or certified by Etsy, Inc.

## 屏幕截图

 * [[
 * The admin interface.
 * [[
 * How it looks on the page.

## 安装

 1. Upload `etsy-widget.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Use the Etsy widget in your sidebars and click ‘[EDIT]’.
 4. Enter your etsy shop name and the number of rows and columns to display.
 5. Choose how items are chosen (Most Recent, or Random).
 6. If desired, add custom styling to your theme for the ‘etsy’ css class, otherwise
    it will default to sidebar style rules.

## 常见问题

  Why not use the other etsy sidebar widget?

At the time I wrote this plugin another etsy sidebar widget was available. However,
it didn’t meet my needs because it only allowed you to embed Etsy Mini code. Functionality
which could just as easily be obtained with the default ‘Text’ widget.

  Why not use Etsy Mini?

Etsy Mini uses an iframe or flash object. In either case there is no easy way to
control the styling. Also, you must go to your etsy account to generate new code
if you want to change the basic layout. This widget allows complete styling and 
an equivalent number of layout options in the widget configuration.

  Does it cache the Etsy API call results?

Yes. By default, a json cache file is stored in the system temp directory. The cache
is refreshed every 6 hours. You can change the cache location in the configuration
window.

  Why not use the wordpress object cache?

The wordpress object cache is not enabled by default. I choose not to use it because
I wanted the plugin to be as easy as possible to install.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Custom Etsy Widget」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jcoxwell ](https://profiles.wordpress.org/jcoxwell/)

[帮助将「Custom Etsy Widget」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/etsy-widget)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.0.8

Fix optional link to store home page.

#### 1.0.7

Clear the cache on activation. This solves a couple of problems. Most importantly
if Etsy changes the API format the cache will be cleared automatically on upgrade.
It’s also handy to be able to clear the cache manually by deactivating and reactivating
the plugin.

You must use your shop name. An error will appear if an old version of the plugin
was set to use you user id number. If this happens go to the widget configuration
and change it.

#### 1.0.6

Upgrade to use Esty API V2.

Removed invalid image size options.

#### 1.0.5

Add option to change cache location. The default is to use whatever is returned 
by the php function sys_get_temp_dir (usually /tmp on unix systems).

#### 1.0.4

Fixed bug in column layout. Older version wouldn’t render more than 2 columns.

#### 1.0.3

Add admin option to choose image thumbnail size for display.

Set cache life to 6hrs to comply with etsy api requirements.

#### 1.0.2

Fix a cache problem that would occur when showing the widget from multiple blogs
installed as different users.

#### 1.0.1

Add readme, comments, and documentation.

## 额外信息

 *  版本 **1.0.8**
 *  最后更新：**16 年前**
 *  活跃安装数量 **70+**
 *  WordPress 版本 ** 2.2 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/etsy-widget/)
 * 标签
 * [etsy](https://cn.wordpress.org/plugins/tags/etsy/)[sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/etsy-widget/advanced/)

## 评级

 1 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ jcoxwell ](https://profiles.wordpress.org/jcoxwell/)

## 支持

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

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

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=11250185)