Title: Anything Block
Author: Joost de Valk
Published: <strong>2020 年 4 月 18 日</strong>
Last modified: 2023 年 10 月 17 日

---

搜索插件

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

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

# Anything Block

 作者：[Joost de Valk](https://profiles.wordpress.org/joostdevalk/)

[下载](https://downloads.wordpress.org/plugin/anything-block.1.0.3.zip)

 * [详情](https://cn.wordpress.org/plugins/anything-block/#description)
 * [评价](https://cn.wordpress.org/plugins/anything-block/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/anything-block/#developers)

 [支持](https://wordpress.org/support/plugin/anything-block/)

## 描述

With the Anything Block you can print values stored in settings, post-meta and even
theme-mods.

Start typing in the “Output HTML” field of the block and your HTML will be rendered
directly. You can use `{data}` as a placeholder for your saved data.

Used in conjunction with the Gutenberg Full-Site-Editing experiment this block can
be used to add various data to your templates. In WooCommerce or EDD are installed
on the site, it can be even used to create custom templates for your products using
the post-meta.

### Examples

 * Print the site-name: `{data.setting.blogname}`
 * Print a link to the site-home, with the site-name as text: `<a href="{data.setting.
   home}">{data.setting.blogname}</a>`
 * Print the post-ID: `{data.post.ID}`
 * Print a theme-mod: `{data.themeMod.my_theme_mod}`
 * Print a post-meta: `{data.post.meta.my_post_meta}`

## 区块

该插件提供了 1 个区块.

 *   Anything Block

## 评价

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

### 󠀁[Ultimate Little Helper Block](https://wordpress.org/support/topic/ultimate-little-helper-block/)󠁿

 [cvladan](https://profiles.wordpress.org/cvladan/) 2023 年 10 月 17 日

I really don’t understand why more people don’t use this perfect block. It has everything;
custom fields and you can even use information from theme customisations. Whenever
I need to insert some html quickly and it’s small, I use this amazing helper. I 
think it’s brilliant! Thanks to the author for this very useful plugin.

 [ 阅读所有0条评价 ](https://wordpress.org/support/plugin/anything-block/reviews/)

## 贡献者及开发者

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

贡献者

 *   [ Joost de Valk ](https://profiles.wordpress.org/joostdevalk/)
 *   [ Ari Stathopoulos ](https://profiles.wordpress.org/aristath/)

「Anything Block」插件已被翻译至 2 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/anything-block/contributors)
为本插件所做的贡献。

[帮助将「Anything Block」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/anything-block)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0.3**
 *  最后更新：**3 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.4.8**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/anything-block/) 、 [German](https://de.wordpress.org/plugins/anything-block/)
   和 [Russian](https://ru.wordpress.org/plugins/anything-block/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/anything-block)
 * 标签
 * [blocks](https://cn.wordpress.org/plugins/tags/blocks/)[editor](https://cn.wordpress.org/plugins/tags/editor/)
   [gutenberg](https://cn.wordpress.org/plugins/tags/gutenberg/)[gutenberg blocks](https://cn.wordpress.org/plugins/tags/gutenberg-blocks/)
 *  [高级视图](https://cn.wordpress.org/plugins/anything-block/advanced/)

## 评级

 5 星（最高 5 星）。

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

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

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

## 贡献者

 *   [ Joost de Valk ](https://profiles.wordpress.org/joostdevalk/)
 *   [ Ari Stathopoulos ](https://profiles.wordpress.org/aristath/)

## 支持

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

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