Plugin Directory

Test out the new Plugin Directory and let us know what you think.

CBX Dynamic Sidebar

Dynamic sidebar for wordpress using custom post type and shortcode

CBX Dynamic Sidebar for WordPress helps to create dynamic sidebar or widget position using custom post type. 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

[cbxdynamicsidebar id="post id here" /]

It'a also possible to call the sidebar using direction function call in theme

$sidebar_id, 'wclass' => 'cbxdynamicsidebar_wrapper', 'wid' => 'cbxdynamicsidebar_wrapper', 'float' => 'auto' ); echo cbxdynamicsidebar_display($config_array); } ?>

or more simple way

See the gist here https://gist.github.com/manchumahara/81c60c90d03678a1964c#file-gistfile1-txt

From the custom post type "cbxsidebar" post edit screen there are other features that is implemented using meta field for

  • sidebar class
  • sidebar description
  • sidebar before widget html wrapper
  • sidebar after widget html wrapper
  • sidebar widget before title html wrapper
  • sidebar widget after title html wrapper
  • sidebar enable disable without deleting the sidebar post
  • Translation ready

Shortcode & function Param Definition id – sidebar post id

wclass – sidebar will be wrapper in a div and it will have a class from the value of param ‘wclass’, default value is ‘cbxdynamicsidebar_wrapper’. also extra another class will be added using ‘cbxdynamicsidebar_wrapper’ with sidebar id at last

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

float – default value ‘auto’, other possible values ‘left’, ‘right’, which means float none/auto, float left and float right

For shortcode with all possible param –

[cbxdynamicsidebar id="post id here" float="left" wclass="cbxdynamicsidebar_wrapper" wid="cbxdynamicsidebar_wrapper" /]

For more details check here http://wpboxr.com/product/cbx-dynamic-sidebar-for-wordpress

Requires: 3.0.1 or higher
Compatible up to: 4.2.13
Last Updated: 2 years ago
Active Installs: 70+


0 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.