跳到内容

Dynamically Dynamic Sidebar

v0.7

ShinichiN · 2015年11月16日 上架

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

正在使用
10+
评分
暂无
累计下载
2,383
最近更新
2016年9月9日
需要 WordPress 4.4+已测试到 4.6.30

贡献者

截图

First, you add your own dynamic sidebar areas. It's unlimited.
First, you add your own dynamic sidebar areas. It's unlimited.
Widget areas will appear on your admin panel. Put your widgets inside them.
Widget areas will appear on your admin panel. Put your widgets inside them.
Choose which widget area you want to use for categories, tags and all the custom taxonomy terms.
Choose which widget area you want to use for categories, tags and all the custom taxonomy terms.
You can also choose specific sidebar area for each post, page and custom-post-type post.
You can also choose specific sidebar area for each post, page and custom-post-type post.

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.

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums