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 個可供 Gutenberg/區塊編輯器使用的區塊。

  • Anything Block

使用者評論

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 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Anything Block〉的開發相關工作。

參與者

〈Anything Block〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Anything Block〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄