AI助手支持GPT4.0
CBX Dynamic Sidebar for WordPress helps to create dynamic sidebar or widget position using custom post type.
适用于WordPress的CBX动态边栏有助于使用自定义帖子类型创建动态边栏或小部件位置。
Sometimes we need to put sidebar inside content and this plugin
有时我们需要在内容和此插件中放置侧边栏
helps to create sidebar using custom post type and put the sidebar inside content using shortcode using simple shortcode
帮助使用自定义帖子类型创建边栏,并使用简单的简码使用简码将边栏放入内容中 p>
[cbxdynamicsidebar id=”post id here” /]
[cbxdynamicsidebar id =”此处发布ID” /] p>
src='https://www.youtube.com/embed/SHMWA0Fdg18?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><src ='https://www.youtube.com/embed/SHMWA0Fdg18?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> < /iframe>/ iframe> span>It’a also possible to call the sidebar using direction function call in theme也可以使用主题中的方向功能调用来调用侧边栏 p> <?php if(function_exists('cbxdynamicsidebar_display')){ if(function_exists('cbxdynamicsidebar_display')){ $sidebar_id = 'post id here'; $ sidebar_id ='在这里发布ID'; $config_array = array( $ config_array =数组( 'id' => $sidebar_id, 'id'=> $ sidebar_id, 'wclass' => 'cbxdynamicsidebar_wrapper', 'wclass'=>'cbxdynamicsidebar_wrapper', 'wid' => 'cbxdynamicsidebar_wrapper', 'wid'=>'cbxdynamicsidebar_wrapper', 'float' => 'none' '浮动'=>'无' ); ); echo cbxdynamicsidebar_display($config_array); 回声cbxdynamicsidebar_display($ config_array); } } ?>?> code> pre>or more simple way或更简单的方法 p> <?php do_shortcode('[cbxdynamicsidebar id="post id here"]'); do_shortcode('[[cbxdynamicsidebar id =“在这里发布ID”]“)); ?>?> code> pre>See the gist here 在此处查看要点 p>From the custom post type “cbxsidebar” post edit screen there are other features that is implemented using meta field for在自定义帖子类型“ cbxsidebar”的帖子编辑屏幕中,还有其他功能是使用meta字段实现的 p>sidebar class侧边栏类 li>sidebar description侧边栏说明 li>sidebar before widget html wrapper小部件html包装程序之前的侧边栏 li>sidebar after widget html wrapper小部件html包装器后的侧边栏 li>sidebar widget before title html wrapper标题html包装程序之前的侧边栏小工具 li>sidebar widget after title html wrapper标题html包装器后的侧栏小部件 li>sidebar enable disable without deleting the sidebar post侧边栏启用禁用而不删除侧边栏帖子 li>Translation ready准备翻译 li>Gutenberg block support (From v1.0.5) Gutenberg块支持(来自v1.0.5) li> ul>Shortcode & function Param Definition简码和函数参数定义 p>id – sidebar post id id –侧边栏帖子ID p>wclass – sidebar will be wrapper in a div and it will have a class from the value of param ‘class’, default value is ‘cbxdynamicsidebar_wrapper’. wclass –侧边栏将被包装在div中,并且它将具有一个来自参数“ class”的值的类,默认值为“ cbxdynamicsidebar_wrapper”。also extra another class will be added using ‘cbxdynamicsidebar_wrapper’ with sidebar id at last还可以使用最后带有侧边栏ID的“ cbxdynamicsidebar_wrapper”添加额外的另一个类 p>wid – sidebar will be wrapper in a div and it will have a class from the value of param ‘cbxdynamicsidebar_wrapper’, default value is ‘cbxdynamicsidebar_wrapper’ with sidebar id at last wid –侧边栏将被包装在div中,并将具有一个来自参数“ cbxdynamicsidebar_wrapper”的类,默认值为“ cbxdynamicsidebar_wrapper”,最后一个侧边栏ID p>float – default value ‘none’, other possible values ‘left’, ‘right’, which means float none/auto, float left and float right float-默认值“ none”,其他可能的值“ left”,“ right”,表示无/自动浮动,向左浮动和向右浮动 p>For shortcode with all possible param –对于包含所有可能参数的简码– p>[cbxdynamicsidebar id=”post id here” float=”left” wclass=”cbxdynamicsidebar_wrapper” wid=”cbxdynamicsidebar_wrapper” /] [cbxdynamicsidebar id =” post id here” float =“ left” wclass =“ cbxdynamicsidebar_wrapper” wid =“ cbxdynamicsidebar_wrapper” /] p>For more details check here 有关详细信息,请点击此处 p>
src='https://www.youtube.com/embed/SHMWA0Fdg18?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><src ='https://www.youtube.com/embed/SHMWA0Fdg18?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> < /iframe>
src='https://www.youtube.com/embed/SHMWA0Fdg18?version=3&rel=1&fs=1&autohide=2&showsearch=0&showinfo=1&iv_load_policy=1&wmode=transparent' allowfullscreen='true' style='border:0;'><
src ='https://www.youtube.com/embed/SHMWA0Fdg18?version = 3&rel = 1&fs = 1&autohide = 2&showsearch = 0&showinfo = 1&iv_load_policy = 1&wmode = transparent'allowfullscreen ='true'style ='border:0;'> <
/iframe>
/ iframe> span>
It’a also possible to call the sidebar using direction function call in theme
也可以使用主题中的方向功能调用来调用侧边栏 p>
<?php if(function_exists('cbxdynamicsidebar_display')){ if(function_exists('cbxdynamicsidebar_display')){ $sidebar_id = 'post id here'; $ sidebar_id ='在这里发布ID'; $config_array = array( $ config_array =数组( 'id' => $sidebar_id, 'id'=> $ sidebar_id, 'wclass' => 'cbxdynamicsidebar_wrapper', 'wclass'=>'cbxdynamicsidebar_wrapper', 'wid' => 'cbxdynamicsidebar_wrapper', 'wid'=>'cbxdynamicsidebar_wrapper', 'float' => 'none' '浮动'=>'无' ); ); echo cbxdynamicsidebar_display($config_array); 回声cbxdynamicsidebar_display($ config_array); } } ?>?> code> pre>or more simple way或更简单的方法 p> <?php do_shortcode('[cbxdynamicsidebar id="post id here"]'); do_shortcode('[[cbxdynamicsidebar id =“在这里发布ID”]“)); ?>?> code> pre>See the gist here 在此处查看要点 p>From the custom post type “cbxsidebar” post edit screen there are other features that is implemented using meta field for在自定义帖子类型“ cbxsidebar”的帖子编辑屏幕中,还有其他功能是使用meta字段实现的 p>sidebar class侧边栏类 li>sidebar description侧边栏说明 li>sidebar before widget html wrapper小部件html包装程序之前的侧边栏 li>sidebar after widget html wrapper小部件html包装器后的侧边栏 li>sidebar widget before title html wrapper标题html包装程序之前的侧边栏小工具 li>sidebar widget after title html wrapper标题html包装器后的侧栏小部件 li>sidebar enable disable without deleting the sidebar post侧边栏启用禁用而不删除侧边栏帖子 li>Translation ready准备翻译 li>Gutenberg block support (From v1.0.5) Gutenberg块支持(来自v1.0.5) li> ul>Shortcode & function Param Definition简码和函数参数定义 p>id – sidebar post id id –侧边栏帖子ID p>wclass – sidebar will be wrapper in a div and it will have a class from the value of param ‘class’, default value is ‘cbxdynamicsidebar_wrapper’. wclass –侧边栏将被包装在div中,并且它将具有一个来自参数“ class”的值的类,默认值为“ cbxdynamicsidebar_wrapper”。also extra another class will be added using ‘cbxdynamicsidebar_wrapper’ with sidebar id at last还可以使用最后带有侧边栏ID的“ cbxdynamicsidebar_wrapper”添加额外的另一个类 p>wid – sidebar will be wrapper in a div and it will have a class from the value of param ‘cbxdynamicsidebar_wrapper’, default value is ‘cbxdynamicsidebar_wrapper’ with sidebar id at last wid –侧边栏将被包装在div中,并将具有一个来自参数“ cbxdynamicsidebar_wrapper”的类,默认值为“ cbxdynamicsidebar_wrapper”,最后一个侧边栏ID p>float – default value ‘none’, other possible values ‘left’, ‘right’, which means float none/auto, float left and float right float-默认值“ none”,其他可能的值“ left”,“ right”,表示无/自动浮动,向左浮动和向右浮动 p>For shortcode with all possible param –对于包含所有可能参数的简码– p>[cbxdynamicsidebar id=”post id here” float=”left” wclass=”cbxdynamicsidebar_wrapper” wid=”cbxdynamicsidebar_wrapper” /] [cbxdynamicsidebar id =” post id here” float =“ left” wclass =“ cbxdynamicsidebar_wrapper” wid =“ cbxdynamicsidebar_wrapper” /] p>For more details check here 有关详细信息,请点击此处 p>
<?php if(function_exists('cbxdynamicsidebar_display')){ if(function_exists('cbxdynamicsidebar_display')){ $sidebar_id = 'post id here'; $ sidebar_id ='在这里发布ID'; $config_array = array( $ config_array =数组( 'id' => $sidebar_id, 'id'=> $ sidebar_id, 'wclass' => 'cbxdynamicsidebar_wrapper', 'wclass'=>'cbxdynamicsidebar_wrapper', 'wid' => 'cbxdynamicsidebar_wrapper', 'wid'=>'cbxdynamicsidebar_wrapper', 'float' => 'none' '浮动'=>'无' ); ); echo cbxdynamicsidebar_display($config_array); 回声cbxdynamicsidebar_display($ config_array); } } ?>?>
if(function_exists('cbxdynamicsidebar_display')){
if(function_exists('cbxdynamicsidebar_display')){
$sidebar_id = 'post id here';
$ sidebar_id ='在这里发布ID';
$config_array = array(
$ config_array =数组(
'id' => $sidebar_id,
'id'=> $ sidebar_id,
'wclass' => 'cbxdynamicsidebar_wrapper',
'wclass'=>'cbxdynamicsidebar_wrapper',
'wid' => 'cbxdynamicsidebar_wrapper',
'wid'=>'cbxdynamicsidebar_wrapper',
'float' => 'none'
'浮动'=>'无'
);
);
echo cbxdynamicsidebar_display($config_array);
回声cbxdynamicsidebar_display($ config_array);
}
?>
?>
code> pre>
or more simple way
或更简单的方法 p>
<?php do_shortcode('[cbxdynamicsidebar id="post id here"]'); do_shortcode('[[cbxdynamicsidebar id =“在这里发布ID”]“)); ?>?> code> pre>See the gist here 在此处查看要点 p>From the custom post type “cbxsidebar” post edit screen there are other features that is implemented using meta field for在自定义帖子类型“ cbxsidebar”的帖子编辑屏幕中,还有其他功能是使用meta字段实现的 p>sidebar class侧边栏类 li>sidebar description侧边栏说明 li>sidebar before widget html wrapper小部件html包装程序之前的侧边栏 li>sidebar after widget html wrapper小部件html包装器后的侧边栏 li>sidebar widget before title html wrapper标题html包装程序之前的侧边栏小工具 li>sidebar widget after title html wrapper标题html包装器后的侧栏小部件 li>sidebar enable disable without deleting the sidebar post侧边栏启用禁用而不删除侧边栏帖子 li>Translation ready准备翻译 li>Gutenberg block support (From v1.0.5) Gutenberg块支持(来自v1.0.5) li> ul>Shortcode & function Param Definition简码和函数参数定义 p>id – sidebar post id id –侧边栏帖子ID p>wclass – sidebar will be wrapper in a div and it will have a class from the value of param ‘class’, default value is ‘cbxdynamicsidebar_wrapper’. wclass –侧边栏将被包装在div中,并且它将具有一个来自参数“ class”的值的类,默认值为“ cbxdynamicsidebar_wrapper”。also extra another class will be added using ‘cbxdynamicsidebar_wrapper’ with sidebar id at last还可以使用最后带有侧边栏ID的“ cbxdynamicsidebar_wrapper”添加额外的另一个类 p>wid – sidebar will be wrapper in a div and it will have a class from the value of param ‘cbxdynamicsidebar_wrapper’, default value is ‘cbxdynamicsidebar_wrapper’ with sidebar id at last wid –侧边栏将被包装在div中,并将具有一个来自参数“ cbxdynamicsidebar_wrapper”的类,默认值为“ cbxdynamicsidebar_wrapper”,最后一个侧边栏ID p>float – default value ‘none’, other possible values ‘left’, ‘right’, which means float none/auto, float left and float right float-默认值“ none”,其他可能的值“ left”,“ right”,表示无/自动浮动,向左浮动和向右浮动 p>For shortcode with all possible param –对于包含所有可能参数的简码– p>[cbxdynamicsidebar id=”post id here” float=”left” wclass=”cbxdynamicsidebar_wrapper” wid=”cbxdynamicsidebar_wrapper” /] [cbxdynamicsidebar id =” post id here” float =“ left” wclass =“ cbxdynamicsidebar_wrapper” wid =“ cbxdynamicsidebar_wrapper” /] p>For more details check here 有关详细信息,请点击此处 p>
<?php do_shortcode('[cbxdynamicsidebar id="post id here"]'); do_shortcode('[[cbxdynamicsidebar id =“在这里发布ID”]“)); ?>?>
do_shortcode('[cbxdynamicsidebar id="post id here"]');
do_shortcode('[[cbxdynamicsidebar id =“在这里发布ID”]“));
See the gist here
在此处查看要点 p>
From the custom post type “cbxsidebar” post edit screen there are other features that is implemented using meta field for
在自定义帖子类型“ cbxsidebar”的帖子编辑屏幕中,还有其他功能是使用meta字段实现的 p>
标题html包装器后的
ul>
Shortcode & function Param Definition
简码和函数参数定义 p>
id – sidebar post id
id –侧边栏帖子ID p>
wclass – sidebar will be wrapper in a div and it will have a class from the value of param ‘class’, default value is ‘cbxdynamicsidebar_wrapper’.
wclass –侧边栏将被包装在div中,并且它将具有一个来自参数“ class”的值的类,默认值为“ cbxdynamicsidebar_wrapper”。
also extra another class will be added using ‘cbxdynamicsidebar_wrapper’ with sidebar id at last
还可以使用最后带有侧边栏ID的“ cbxdynamicsidebar_wrapper”添加额外的另一个类 p>
wid – sidebar will be wrapper in a div and it will have a class from the value of param ‘cbxdynamicsidebar_wrapper’, default value is ‘cbxdynamicsidebar_wrapper’ with sidebar id at last
wid –侧边栏将被包装在div中,并将具有一个来自参数“ cbxdynamicsidebar_wrapper”的类,默认值为“ cbxdynamicsidebar_wrapper”,最后一个侧边栏ID p>
float – default value ‘none’, other possible values ‘left’, ‘right’, which means float none/auto, float left and float right
float-默认值“ none”,其他可能的值“ left”,“ right”,表示无/自动浮动,向左浮动和向右浮动 p>
For shortcode with all possible param –
对于包含所有可能参数的简码– p>
[cbxdynamicsidebar id=”post id here” float=”left” wclass=”cbxdynamicsidebar_wrapper” wid=”cbxdynamicsidebar_wrapper” /]
[cbxdynamicsidebar id =” post id here” float =“ left” wclass =“ cbxdynamicsidebar_wrapper” wid =“ cbxdynamicsidebar_wrapper” /] p>
For more details check here
有关详细信息,请点击此处 p>
This section describes how to install the plugin and get it working.
本节介绍如何安装插件并使其正常工作。 p>
e.g.
例如 p>
cbxdynamicsidebar
/wp-content/plugins/
cbxdynamicsidebar code>文件夹上传到 / wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
/ wp-content / plugins / code>目录 li>Activate the plugin through the ‘Plugins’ menu in WordPress通过WordPress中的“插件”菜单激活插件 li>
ol>
原文出处:http://www.sanshu.cn/a/6671.html
群主管理都是支付大佬