WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

PG Context Sidebar

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

PG Context Sidebar

作者:PeoplesGeek
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

Use this widget to show content in any sidebar that is related to the current page or post. Have a targeted message or call too action that relates to this page.

  • If the page is advertising a product put details of special deals.
  • If post is a tutorial then you could put details of prerequisites.
  • Add a quote relevant to your article that displays in the sidebar.

Sometimes you want to display a promotion in the sidebar when you display a particular page, or highlight a quote or reference that is particularly relevant – but only to that page.

Simply enter the extra content on your page when you create or edit it. Then place the widget into your sidebar where you want it to display.

If you don’t have content to display for a particular page then the sidebar widget is not shown.

Features

  • Add extra content to any custom post type – select the types where you want to be able to enter information.
  • Use html in your content for emphasis, images and links.
  • Easily copy the content of one context sensitive sidebar page to another
  • Use one context sensitive sidebar page as a template for others so that changes are instantly reflected everywhere it is used.
  • Easily identify pages that have context sensitive sidebar information from the ‘all pages/posts’ view

Localisation: if you can provide a translation for the administration text then please get in touch and I will add a translation for the language you provide.

屏幕截图

  • Shows new fields for your sidebar content on the post page
  • Shows the resulting content in the sidebar for the page
  • Shows the ability to select the page or post types that allow context sensitive content

安装

  1. Upload all the files into your plugins directory
  2. Activate the plugin at the plugin administration page
  3. On each page or post that you want to display context related information enter this into the Context Sidebar meta-box
  4. Add the PG Context Sidebar widget to the sidebar in your theme
  5. Go to settings and select the page types that you want to use with Context Sidebar

常见问题

What if I don’t have sidebar content for every page

The sidebar is only shown if there is content to be displayed. If you have no content for the sidebar on a particular page then leave the fields empty

How do I hide the meta-box for some post types

The Context Sensitive Sidebar meta box will show in all post types by default. If you want to hide the meta-box for a particular post type then go to the admin page located under Settings and un-tic that post type.

评价

此插件暂无评价。

贡献者及开发者

「PG Context Sidebar」是开源软件。 以下人员对此插件做出了贡献。

贡献者
  • PeoplesGeek

帮助将「PG Context Sidebar」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

Version 2.1

  • Updated Widget constructor to newer PHP version to prevent depreciation warnings in debug log
  • Tested with WordPress 4.7.5
  • Bumped and tested with WordPress 5.2.1

Version 2.0.1

  • Tested compatibility with WordPress 3.8.1
  • Added logic to stop the sidebar icon showing in post types where it had not been selected.
  • Added the ability to exclude the copy functionality from some post types (was failing for some blogs with a large number of posts)

Version 2.0.0

  • Added the ability to copy from another page/post
  • Added the ability to use a page/post as a template that automatically updates another page/post
  • Allow an icon to be shown on the ‘all pages’ / ‘all posts’ pages so it is easy to see which ones have content entered
  • Added support for admin language translations (Localization)

Version 1.0.1

  • Fixed filter on ‘widget_text’ for content and allow line breaks and html in the content

Version 1.0.0

  • Initial Release

额外信息

  • 版本 2.1
  • 最后更新:4 年前
  • 活跃安装数量 100+
  • WordPress 版本 3.3 或更高版本
  • 已测试的最高版本为 5.6.14
  • 语言
    English (US)
  • 标签
    custom sidebarspage sidebarpost sidebar
  • 高级视图

评级

尚未提交反馈。

添加我的评价

查看全部评论

贡献者

  • PeoplesGeek

支持

有话要说吗?是否需要帮助?

查看支持论坛

捐助

您愿意支持这个插件的发展吗?

捐助此插件

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • 未来五分计划
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • Visit our Bluesky account
  • Visit our Mastodon account
  • Visit our Threads account
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • Visit our TikTok account
  • 访问我们的 YouTube 频道
  • Visit our Tumblr account
代码如诗