AI助手支持GPT4.0
Have ever encountered the need to add new sections to your page content without needing to add divs to your content, editing your theme files or using a widget?
是否曾经遇到过需要在页面内容中添加新部分而无需在内容中添加div,编辑主题文件或使用小部件的需求?
Are you a WordPress novice and have no idea what that previous sentance means?
您是WordPress新手,不知道以前的观点是什么意思吗?
Fear no longer – Blocky!
不再恐惧–块状!
is here.
在这里。 p>
Blocky!
木块!
allows you to add a new section to the content of your posts and pages without needing to know any web coding.
允许您在帖子和页面的内容中添加新部分,而无需了解任何网络编码。
Simply click on the “Add New Content Section” button and get typing.
只需单击“添加新内容部分”按钮并输入即可。
块状!
brings in a new WYSIWYG editor, allowing you to add more content the same way you would with your main post content.
引入了一个新的所见即所得编辑器,使您可以像添加主要文章内容一样添加更多内容。
Want to change the layout of your additional content sections?
是否要更改其他内容部分的布局?
Simply add classes to your content section and use your stylesheet to do the rest.
只需将类添加到内容部分,然后使用样式表即可完成其余工作。
Would you rather not wrap your content in a div?
div
您是否不想将内容包装在 div code>中?Simply edit it in the settings page.只需在设置页面中对其进行编辑。Only want to use Blocky!只想使用Blocky!on select post types?选择职位类型?You can choose which post types to enable Blocky!您可以选择启用“阻止”的帖子类型!from the settings page.从设置页面。Blocky!块状!also grabs the current setting for the WYSIWYG editors, meaning that your Blocky!还可以获取所见即所得编辑器的当前设置,这意味着您的Blocky!editors are consistent with the content editors even if you are using a plugin such as TinyMCE Advanced that extends the capabilities of the editor.即使您使用的插件(例如TinyMCE Advanced)扩展了编辑器的功能,编辑器也与内容编辑器保持一致。 p>For more advanced uses, use the get_additional_content( $postID ); to return Blocky!’s additional content as a multidimensional array with each section containing an array with both the class and the content.要进行更高级的使用,请使用 get_additional_content($ postID); code>以多维数组形式返回Blocky!的其他内容,每个部分都包含一个包含类和内容的数组。See “Other Notes” for more details.有关更多详细信息,请参见“其他说明”。 p>If you like the plugin, please take the time to leave a review.如果您喜欢该插件,请花点时间进行评论。 p>Advanced Use Case高级用例 h3>To use Blocky!要使用Blocky!without the content filter, use this template如果没有内容过滤器,请使用此模板 p>Replace with 将 <?php the_content();?> code>替换为 <?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
div code>中?Simply edit it in the settings page.只需在设置页面中对其进行编辑。Only want to use Blocky!只想使用Blocky!on select post types?选择职位类型?You can choose which post types to enable Blocky!您可以选择启用“阻止”的帖子类型!from the settings page.从设置页面。Blocky!块状!also grabs the current setting for the WYSIWYG editors, meaning that your Blocky!还可以获取所见即所得编辑器的当前设置,这意味着您的Blocky!editors are consistent with the content editors even if you are using a plugin such as TinyMCE Advanced that extends the capabilities of the editor.即使您使用的插件(例如TinyMCE Advanced)扩展了编辑器的功能,编辑器也与内容编辑器保持一致。 p>For more advanced uses, use the get_additional_content( $postID ); to return Blocky!’s additional content as a multidimensional array with each section containing an array with both the class and the content.要进行更高级的使用,请使用 get_additional_content($ postID); code>以多维数组形式返回Blocky!的其他内容,每个部分都包含一个包含类和内容的数组。See “Other Notes” for more details.有关更多详细信息,请参见“其他说明”。 p>If you like the plugin, please take the time to leave a review.如果您喜欢该插件,请花点时间进行评论。 p>Advanced Use Case高级用例 h3>To use Blocky!要使用Blocky!without the content filter, use this template如果没有内容过滤器,请使用此模板 p>Replace with 将 <?php the_content();?> code>替换为 <?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
Simply edit it in the settings page.
只需在设置页面中对其进行编辑。
Only want to use Blocky!
只想使用Blocky!
on select post types?
选择职位类型?
You can choose which post types to enable Blocky!
您可以选择启用“阻止”的帖子类型!
from the settings page.
从设置页面。
also grabs the current setting for the WYSIWYG editors, meaning that your Blocky!
还可以获取所见即所得编辑器的当前设置,这意味着您的Blocky!
editors are consistent with the content editors even if you are using a plugin such as TinyMCE Advanced that extends the capabilities of the editor.
即使您使用的插件(例如TinyMCE Advanced)扩展了编辑器的功能,编辑器也与内容编辑器保持一致。 p>
For more advanced uses, use the get_additional_content( $postID ); to return Blocky!’s additional content as a multidimensional array with each section containing an array with both the class and the content.
get_additional_content( $postID );
要进行更高级的使用,请使用 get_additional_content($ postID); code>以多维数组形式返回Blocky!的其他内容,每个部分都包含一个包含类和内容的数组。See “Other Notes” for more details.有关更多详细信息,请参见“其他说明”。 p>If you like the plugin, please take the time to leave a review.如果您喜欢该插件,请花点时间进行评论。 p>Advanced Use Case高级用例 h3>To use Blocky!要使用Blocky!without the content filter, use this template如果没有内容过滤器,请使用此模板 p>Replace with 将 <?php the_content();?> code>替换为 <?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
get_additional_content($ postID); code>以多维数组形式返回Blocky!的其他内容,每个部分都包含一个包含类和内容的数组。See “Other Notes” for more details.有关更多详细信息,请参见“其他说明”。 p>If you like the plugin, please take the time to leave a review.如果您喜欢该插件,请花点时间进行评论。 p>Advanced Use Case高级用例 h3>To use Blocky!要使用Blocky!without the content filter, use this template如果没有内容过滤器,请使用此模板 p>Replace with 将 <?php the_content();?> code>替换为 <?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
See “Other Notes” for more details.
有关更多详细信息,请参见“其他说明”。 p>
If you like the plugin, please take the time to leave a review.
如果您喜欢该插件,请花点时间进行评论。 p>
To use Blocky!
要使用Blocky!
without the content filter, use this template
如果没有内容过滤器,请使用此模板 p>
Replace with
将 <?php the_content();?> code>替换为 <?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
<?php the_content();?> code>替换为 <?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
<?php echo do_shortcode(get_the_content());?> code> p>Where you want your additional content to display, add this code要在其中显示其他内容的地方,添加此代码 p> <?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
Where you want your additional content to display, add this code
要在其中显示其他内容的地方,添加此代码 p>
<?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?> code> pre>
<?php $ additional_content = get_additional_content();for( $i = 0; $i < count($additional_content); $i++ ) { for($ i = 0; $ i echo $additional_content[$i]['content'];echo $ additional_content [$ i] ['content'];}?>}?>
for( $i = 0; $i < count($additional_content); $i++ ) {
for($ i = 0; $ i
echo $additional_content[$i]['content'];
echo $ additional_content [$ i] ['content'];
}?>
}?>
code> pre>
Add New
在您的WordPress网站的插件页面中,点击
Blocky!搜索 Blocky! - Additional Content Sections-其他内容部分 code> li>Click on install点击安装 li>
Blocky! - Additional Content Sections
- Additional Content Sections
-其他内容部分 code> li>
ol>
– Additional Content Sections
–其他内容部分 li>
Upload the entire blocky folder to the /wp-content/plugins/ directory.
blocky
/wp-content/plugins/
将整个 blocky code>文件夹上载到 / wp-content / plugins / code>目录。 p>
blocky code>文件夹上载到 / wp-content / plugins / code>目录。 p>
/ wp-content / plugins / code>目录。 p>
li>
Activate the plugin through the ‘Plugins’ menu in WordPress.
通过WordPress中的“插件”菜单激活插件。 p>
原文出处:http://www.sanshu.cn/a/4893.html
群主管理都是支付大佬