
內容簡介
這個外掛會創建一個名為「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'); } ?>
外掛標籤
開發者團隊
原文外掛簡介
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.
