plugin-icon

Anything Block

作者:Joost de Valk·
Print any kind of data, any way you want it.
评级
5
版本
1.0.3
最后更新
Oct 17, 2023

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}
免费基于付费套餐
通过安装,您同意 WordPress.com 服务条款第三方插件条款
目前已测试版本
WordPress 6.4.8
这个插件是可用的下载,适用于您的站点。