跳到内容

Widget Context

v1.5.0

Kaspars · 2009年7月16日 上架

Show and hide widgets on specific posts, pages and sections of your site.

正在使用
3 万+
评分
4.5 / 5
累计下载
105 万
最近更新
2026年10月9日
98 条评价需要 WordPress 3.0+已测试到 7.1.5PHP 7.4+

截图

Widget Context settings at the bottom of every widget
Widget Context settings at the bottom of every widget
Widget Context plugin settings
Widget Context plugin settings

Use Widget Context to show and hide widgets on certain sections of your site — front page, posts, pages, archives, search, etc. Use targeting by URLs (with wildcard support) for maximum flexibility.

Premium Support

Subscribe to our Premium Support service and get the PRO 🚀 version of the plugin for free when it’s launched! Your support enables consistent maintenance and new feature development, and is greatly appreciated.

Contribute

Documentation

Widget visibility can be configured under individual widget settings under “Appearance Widgets” in your WordPress administration area or through the widget editing interface in the Customizer.

Target by URL

The “Target by URL” is a powerful feature for targeting sections of your website based on the request URLs. It was inspired by a similar feature in the Drupal CMS.

Use relative URLs such as page/sub-page instead of absolute URLs https://example.com/page/sub-page because relative URLs are more flexible and make the logic portable between different domains and server environments.

Wildcards

Use the wildcard symbol * for matching dynamic parts of the URL. For example:

  • topic/widgets/* to match all posts in the widgets category, if your permalink structure is set to /topic/%category%/%postname%.

  • page-slug/* to match all child pages of the page-slug parent page.

  • Use a trailing ?* to capture URL with all query arguments such as utm_source, etc. For example, for every blog/post-slug also include blog/post-slug?*.

Exclude by URL

Specify URLs to ignore even if they’re matched by any of the other context rules. For example, enter example/sub-page to hide a widget on this page even when “All Posts” is selected under “Global Sections”.

Plums

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

导航

说明

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

© 2026 Plums