Title: Widget Builder
Author: Modern Tribe, Inc.
Published: <strong>2012 年 4 月 26 日</strong>
Last modified: 2015 年 8 月 21 日

---

搜索插件

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

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

![](https://ps.w.org/widget-builder/assets/icon-256x256.png?rev=985727)

# Widget Builder

 作者：[Modern Tribe, Inc.](https://profiles.wordpress.org/moderntribe/)

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

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

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

## 描述

Widget Builder uses native WordPress editing interface to provide a unique tool 
to build custom widgets for your site(s).

 * MU Compatible
 * Create admin dashboard widgets **NEW!**
 * Link the image
 * Title and Description
 * Customize “Read More” link text
 * Very versatile. All fields are optional.
 * Supports override of template so that you can override the template for your 
   theme!

Tested on PHP 5.2.17, 5.3.14 & 5.4.4 and WP 3.3 & 3.4.

This plugin is actively supported and we will do our best to help you. In return
we simply as 3 things:

 1. Help Out. If you see a question on the forum you can help with or have a great 
    idea and want to code it up and submit a patch, that would be just plain awesome
    and we will shower you with praise. Might even be a good way to get to know us 
    and lead to some paid work if you freelance. Also, we are happy to post translations
    if you provide them.
 2. Donate – if this is generating enough revenue to support our time it makes all 
    the difference in the world
     https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&
    hosted_button_id=R8H3DD84PWAQ2
 3. Support us by buying our Premium plugins. In particular, check out our Events Calendar
    Pro http://tri.be/wordpress-events-calendar-pro/

Note: gear vector art used in the WordPress.org banner were created by http://www.
opengraphicdesign.com

### Documentation

#### Dashboard Widgets

Select ‘Available As Dashboard Widget’ in the widget editor to enable a widget as
a dashboard widget. If you do not want this widget showing in the available widgets
list for sidebar placement, select ‘Disable Sidebar Widget’.

#### Default vs. Custom Templates

The built in template can be overridden by files within your template.

The Widget Builder comes with a default template for the widget output. If you would
like to alter the widget display code, create a new folder called “tribe_widget_builder”
in your template directory and copy over the “views/widget.php” file.

Edit the new file to your hearts content. Please do not edit the one in the plugin
folder as that will cause conflicts when you update the plugin to the latest release.

Alternatively you can point to a path of your choosing using the filter ‘tribe_widget_builder_widget.
php’.

#### Filter widget query args

Filter your query arguments or get_posts altogether for granular fine tuning your
listing of widgets or in the case of MU install restricting the builder to one site.

The following filters are available for override
 ‘tribe_widget_builder_get_posts_args’//
customize the widget query parameters ‘tribe_widget_builder_get_posts’ // change
the get_posts() query

## 屏幕截图

 * [[
 * Widget Builder create widget screen.
 * [[
 * List Widget Builder editable widgets.
 * [[
 * Highlighting custom widgets in the Widgets/Sidebar page.
 * [[
 * How the default display template looks in presentation.
 * [[
 * How the default display template looks in the dashboard (when enabled).

## 安装

#### Install

 1. In your WordPress administration, go to the Plugins page
 2. Activate the Widget Builder plugin and a subpage for the plugin will appear
     in
    your Appearance menu.
 3. Go to the Appearance > Widget Builder and create the widget
 4. Go to the Appearance > Widgets page and activate the new widget you created!

If you find any bugs or have any ideas, please mail us.

Please visit the forum for questions or comments: http://WordPress.org/tags/widget-
builder/

#### Requirements

 * PHP 5.1 or above
 * WordPress 3.0 or above

## 常见问题

### Where do I go to file a bug or ask a question?

Please visit the forum for questions or comments: http://WordPress.org/tags/widget-
builder/

## 评价

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

### 󠀁[Breaks with PHP7?](https://wordpress.org/support/topic/breaks-with-php7-2/)󠁿

 [Clicknathan](https://profiles.wordpress.org/clicknathan/) 2017 年 8 月 1 日

I get this error when using the plugin with PHP7: Deprecated: Methods with the same
name as their class will not be constructors in a future version of PHP; Tribe_Widget_Builder_Display
has a deprecated constructor in /www/wp-content/plugins/widget-builder/classes/custom-
widget-display.php on line 19 Fatal error: Cannot use lexical variable $widget_widget
as a parameter name in /www/wp-content/plugins/widget-builder/classes/wp_add_dashboard_widget.
php on line 5

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

### 󠀁[Highly Recommended](https://wordpress.org/support/topic/highly-recommended-18/)󠁿

 [GaryManners](https://profiles.wordpress.org/garymanners/) 2016 年 10 月 12 日

I’ve always wanted a way to create page content that can then be displayed in a 
widget . his plugin does that by allowing you to create your own widget using a 
basic visual editor just like editing a page, you can add photos, change formatting,
etc. Well executed in the samples that I tried out.

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

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-3084/)󠁿

 [Abdul Muqsit](https://profiles.wordpress.org/moxet/) 2016 年 9 月 3 日

Tha’ts what i need for my project, you can create any kind of Widget just like pages
and post.

 [ 阅读所有10条评价 ](https://wordpress.org/support/plugin/widget-builder/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Modern Tribe, Inc. ](https://profiles.wordpress.org/moderntribe/)
 *   [ Timothy Wood ](https://profiles.wordpress.org/codearachnid/)
 *   [ Peter Chester ](https://profiles.wordpress.org/peterchester/)
 *   [ Jonathan Brinley ](https://profiles.wordpress.org/jbrinley/)
 *   [ jazbek ](https://profiles.wordpress.org/jazbek/)

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

### 对开发感兴趣吗?

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

## 更新日志

#### 1.6.2

 * Fix WordPress 4.3 compatibility issues

#### 1.6.1

 * Fix missing data bug when using in especially convoluted multisite arrangments

#### 1.6

 * Added option to specify link targets

#### 1.4

 * Added dashboard widget availability
 * Added disable as sidebar widget option
 * Created new widget_dashboard.php view template

#### 1.3

 * Added option in widget to turn off display of the header title (props to empathik)
 * Resolved get_template_hierarchy trimming file extension
 * Resolved issue with translation file not being loaded in the /lang folder
 * Added es_ES lang translation thanks to elarequi

#### 1.2

 * Integrate into the existing $wp_widget_factory global, respecting the singleton
   intent
 * Add caching to prevent extra queries on every page load
 * Misc bug fixes

#### 1.1

 * CPT admin: remove the preview changes button.
 * CPT admin: remove ‘view post’ link in update message in the yellow after saving
   a widget post.
 * Remove publish date or visibility for the widget.
 * Add language support so that people can contribute translations (Please feel 
   free to send us translations)
 * Misc bug fixes.

#### 1.0

 * Initial plugin release

## 额外信息

 *  版本 **1.6.2**
 *  最后更新：**11 年前**
 *  活跃安装数量 **500+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.3.34**
 *  语言
 * [English (US)](https://wordpress.org/plugins/widget-builder/)
 * 标签
 * [admin](https://cn.wordpress.org/plugins/tags/admin/)[featured image](https://cn.wordpress.org/plugins/tags/featured-image/)
   [sidebar](https://cn.wordpress.org/plugins/tags/sidebar/)[simple](https://cn.wordpress.org/plugins/tags/simple/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/widget-builder/advanced/)

## 评级

 3.7 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Modern Tribe, Inc. ](https://profiles.wordpress.org/moderntribe/)
 *   [ Timothy Wood ](https://profiles.wordpress.org/codearachnid/)
 *   [ Peter Chester ](https://profiles.wordpress.org/peterchester/)
 *   [ Jonathan Brinley ](https://profiles.wordpress.org/jbrinley/)
 *   [ jazbek ](https://profiles.wordpress.org/jazbek/)

## 支持

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

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

## 捐助

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

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