开发者 |
halgatewood
ghuger richardgabriel |
---|---|
更新时间 | 2021年3月31日 02:31 |
捐献地址: | 去捐款 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 5.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
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.
<?php if(function_exists('show_text_block')) { echo show_text_block(421); } ?>
<?php if(function_exists('show_text_block')) { echo show_text_block('slug'); } ?>
/wp-content/plugins/
directory[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.
<?php if(function_exists('show_text_block')) { echo show_text_block(421); } ?>
<?php if(function_exists('show_text_block')) { echo show_text_block('slug'); } ?>