{"id":125345,"date":"2011-05-23T08:00:00","date_gmt":"2011-05-23T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/page-specific-sidebars\/"},"modified":"2012-11-14T02:32:00","modified_gmt":"2012-11-14T02:32:00","slug":"page-specific-sidebars","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/page-specific-sidebars\/","title":{"rendered":"Simple Page Specific Sidebars"},"content":{"rendered":"<p>Page Specific Sidebars adds a checkbox to every page allowing you to choose which pages should have a unique sidebar.<\/p>\n<p>Once you enable a page-specific sidebar in the page editor, a widget area will automatically be created for that page and you can customize it as you like.<\/p>\n<p>You can also specify whether the plugin replaces your generic sidebar with the page-specific sidebar, or simply adds your page-specific sidebar on to the existing sidebar.<\/p>\n<h3>Notes<\/h3>\n<p>Plugin has no built-in styling does not contain native styles; it\u2019s meant to use the styles of your existing theme.<\/p>\n<p>This is a minimal plugin, placing function over form.  If you would like to extend it, or would like us to extend it in later versions, feel free to <a href=\"http:\/\/www.ivycat.com\/contact\/\" rel=\"nofollow ugc\">contact us<\/a>, or post feedback in this plugin\u2019s <a href=\"\" rel=\"nofollow ugc\">support forum<\/a>.<\/p>\n<h3>Usage<\/h3>\n<p>Simply activate and go.  There are a couple filters for customization:<\/p>\n<pre><code>$location = apply_filters( 'page_sidebar_location', 'side' );\n\n$priority = apply_filters( 'page_sidebar_priority', 'high' );\n<\/code><\/pre>\n<p>These allow you to change the location and priority of the metabox on the \u201cEdit Page\u201d view.<\/p>\n<pre><code>$home_slug = apply_filters( 'page-sidebar-homeslug', $home_slug )\n<\/code><\/pre>\n<p>Use this filter if your home page slug is different from \u201chome\u201d :<\/p>\n<p>NOTE: Any page that has a custom loop pulling in multiple posts will throw this plugin off.  For some reason it always outputs the post ID as the last<br \/>\npost output on the page.  Also, the homepage is most likely the latest blog posts in WordPress so I created a check.  It will get the Home page ID and<br \/>\nuse the Home page ID to get its sidebar. (uses is_frontpage() ) to check.<\/p>\n<p>Contact us if you want some more filters or actions added.  http:\/\/www.ivycat.com\/contact<\/p>\n<h3>Road Map<\/h3>\n<ol>\n<li>Add ordering feature? (long down the road).<\/li>\n<li>Suggest a feature\u2026<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Add a sidebar to any specific page by creating a widget area on demand.<\/p>\n","protected":false},"author":65,"featured_media":228704,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Simple Page Specific Sidebars - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Add a sidebar to any specific page by creating a widget area on demand."},"footnotes":""},"categories":[1],"tags":[199,34554,119,804],"class_list":["post-125345","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-page","tag-role-based","tag-sidebar","tag-widgets"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/125345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=125345"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/125345\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/228704"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=125345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=125345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=125345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}