{"id":866,"date":"2012-05-02T15:46:31","date_gmt":"2012-05-02T15:46:31","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=866"},"modified":"2012-05-02T15:46:31","modified_gmt":"2012-05-02T15:46:31","slug":"per-page-sidebars-does-not-work-with-duplicate-page-names","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/code\/per-page-sidebars-does-not-work-with-duplicate-page-names","title":{"rendered":"Per Page Sidebars Does not work with Duplicate Page Names"},"content":{"rendered":"\r\n<p><a href=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2012\/05\/200px-widget-panel1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-868 img-responsive\" title=\"200px-widget-panel[1]\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2012\/05\/200px-widget-panel1-150x150.png\" alt=\"\" width=\"150\" height=\"150\" \/><\/a>As per title , the wordpress plugin <a href=\"http:\/\/thecodecave.com\/plugins\/per-page-sidebars\/\">Per Page Sidebars<\/a> does not work when you enable a widget for 2 pages which have same names. I was building a site which had duplicate children page names for multiple parents.<\/p>\r\n<p>I modified the plugin to register the widgets from <strong>PSS-Name-of-Page<\/strong> to <strong>PSS-Name-of-Parent-Name-of-Page<\/strong><\/p>\r\n<p>This enabled me to have multiple widgets for pages by the same name , and also an easy way to organise the widgets in the backend. Code modify in the <a href=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2012\/05\/per-page-sidebars.php_.txt\">per-page-sidebars.php<\/a> file<\/p>\r\n<p>&nbsp;<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>As per title , the wordpress plugin Per Page Sidebars does not work when you enable a widget for 2 pages which have same names. I was [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[],"class_list":["post-866","post","type-post","status-publish","format-standard","hentry","category-code"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=866"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/866\/revisions"}],"predecessor-version":[{"id":869,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/866\/revisions\/869"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}