Or, embed this snippet using GenerateWP WordPress Plugin.



Category Widget Holder

This snippet is used to hold a group of widgets related to a category for display on a theme.

// Register Sidebar
function cat_widgets_box() {

	$args = array(
		'id'            => 'cat_widgets',
		'name'          => __( 'Category Widget Holder', 'text_domain' ),
		'description'   => __( 'Use this sidebar to hold and collect the category widgets created for use on category landing pages.', 'text_domain' ),
	register_sidebar( $args );


// Hook into the 'widgets_init' action
add_action( 'widgets_init', 'cat_widgets_box' );