[WordPress] 外掛分享: Reusable Text Blocks

首頁外掛目錄 › Reusable Text Blocks
WordPress 外掛 Reusable Text Blocks 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
9,000+
安裝啟用
★★★★
4.9/5 分(36 則評價)
1815 天前
最後更新
0%
問題解決
WordPress 3.5+ v1.5.3 上架:2012-12-18

內容簡介

這個外掛會創建一個名為「text-blocks」的自訂文章類型,並在 WordPress 管理員側邊欄中創建一個新區域,使用標准的 WordPress 用戶界面,您和您的客戶將立即知道如何使用它。

在 1.5 版中新增了變數!您可以在文本區塊內容中添加 {{player}},然後將 ‘player’ 傳遞到短碼中:[text-blocks id=”1″ player=”Hal Gatewood”]

您可以以三種方式將其添加到您的網站:

1. 小工具

包括的小工具允許您指定要插入的塊,如果需要,還可以包含標題。

2. 短碼
[text-blocks id="1"] 或 [text-blocks id="text_block_slug"]

3. PHP 函數

設置了 PHP 函數,因此您不需要使用 do_shortcode 函数。

<?php if(function_exists('show_text_block')) { echo show_text_block(421); } ?>
<?php if(function_exists('show_text_block')) { echo show_text_block('slug'); } ?>

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.5.3) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Reusable Text Blocks」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin creates a new ‘text-blocks’ custom post type with it’s own section in the WordPress admin sidebar. It uses the standard WordPress user interface so you and your clients will know how to use it instantly.

New in Version 1.5: Variables! You can add {{player}} to your text block content and then pass in ‘player’ to the shortcode: [text-blocks id=”1″ player=”Hal Gatewood”]

You can add it to your site in three ways:
1. Widget
The included widget allows you to specify which block you want to insert. You can also include a title if needed.
2. Widget
[text-blocks id="1"] or [text-blocks id="text_block_slug"]

3. PHP Function
A PHP function has been setup so you do not have to use the do_shortcode function.

延伸相關外掛

文章
Filter
Mastodon