Home Plugins dynamically dynamic sidebar
Dynamically Dynamic Sidebar logo

Dynamically Dynamic Sidebar

by ShinichiN on WordPress.org

Create unlimited custom sidebar/widget areas and switch existing areas depending on post, page, custom-post-type post, categories, tags and custom tax …

(0)
First, you add your own dynamic sidebar areas. It's unlimited.

First, you add your own dynamic sidebar areas. It's unlimited.

This plugin enables you to create unlimited custom sidebar/widget areas and switch existing areas. You can do this without touching your theme.

This plugin utilizes term meta api and so it works only with WordPress 4.4 and above.

Your theme needs to use is_active_sidebar() when calling dynamic_sidebar() function.

This will work.

if ( is_active_sidebar( 'sidebar-1' ) ) {
    dynamic_sidebar( 'sidebar-1' );
}

This doesn’t work.

dynamic_sidebar( 'sidebar-1' );

If you only want to output your custom sidebar, put this code on where you want to display the sidebar in your theme.

do_action( 'dynamically_dynamic_sidebar' );

This Plugin published on GitHub.

ウィジェットエリアをいくつでも定義し、カテゴリやタグ、カスタム分類ごとに差し替えたり、投稿・ページ・カスタム投稿から使いたいサイドバーを指定したりすることができます。「スクリーンショット」のタブをごらんいただくと、イメージが湧きやすいと思います。

Active installations10+
Weekly downloads
10+11.11%
Version0.7
Last updated9/9/2016
WordPress version4.4
Tested up to4.6.29
Tags
sidebarwidgetwidget area