{"id":71,"date":"2006-08-27T13:23:05","date_gmt":"2006-08-27T12:23:05","guid":{"rendered":"http:\/\/www.martintod.org.uk\/blog\/?p=71"},"modified":"2017-03-30T15:32:05","modified_gmt":"2017-03-30T14:32:05","slug":"first-non-lib-dem-wordpress-widget","status":"publish","type":"post","link":"https:\/\/www.martintod.org.uk\/blog\/2006\/08\/first-non-lib-dem-wordpress-widget\/","title":{"rendered":"First non-Lib Dem WordPress widget&#8230;"},"content":{"rendered":"<p><em>February 21, 2008: Version 1.2. Bug-fix to ensure that it works with the new datastructure in the latest versions of WordPress.  A huge thank you to <a href=\"http:\/\/www.willhowells.org.uk\">Will Howells<\/a> for fixing this.<\/em><\/p>\n<p><em>September 16, 2006: Version 1.1. Bug-fix to ensure that it &#8216;remembers&#8217; your root page when the Widget page is updated.<\/em><\/p>\n<p>Here&#8217;s the first of two new WordPress Widgets, and, for the first time, it&#8217;s not Lib Dem specific.<\/p>\n<p>It lets you show a subsection of the pages of your WordPress blog.  The options page for the widget shows a drop-down box of all the pages in your blog. Select one of them and only pages below that will be displayed by the widget on the menu.<\/p>\n<p>I&#8217;m using it on <a href=\"http:\/\/www.makeitpolicy.org.uk\">Make IT Policy<\/a> to have a menu section that only shows the pages of the Make IT Policy policy paper.<\/p>\n<p>You can find the Widget <a href=\"\/blog\/wp-content\/plugins\/widgets\/ldpagehierarchy.zip\"><del datetime=\"2014-02-09T23:39:09+00:00\">here<\/del><\/a> <a href=\"http:\/\/wordpress.org\/plugins\/page-hierarchy-plug-in\/\">on the WordPress website<\/a>.<\/p>\n<p>If you already have widgets installed as part of your WordPress installation, you can try this widget out yourself. All you need to do to use it:<\/p>\n<ol>\n<li><a href=\"http:\/\/www.martintod.org.uk\/blog\/wp-content\/uploads\/2008\/02\/ldpagehierarchy.zip\">Download the ldpagehierarchy.zip file<\/a>, extract the ldpagehierarchy.php file and save it or upload it into your widget plug-ins directory.<\/li>\n<li>Go into the &#8216;Plugins&#8217; area of your WordPress installation and activate the &#8216;Sub page hierarchy&#8217; widget.<\/li>\n<li>Go into the &#8216;Sidebar Widgets&#8217; section of the &#8216;Presentation&#8217; area of WordPress, and drag your new &#8216;Sub page hierarchy&#8217; widget to the desired location.<\/li>\n<li>Hit the configure icon, select the page that is the parent of the pages you want to show in your page hierarchy and then close the configuration box.<\/li>\n<li>Hit &#8216;Save Changes&#8217;<\/li>\n<\/ol>\n<p>er, that&#8217;s it.<\/p>\n<p>If you don&#8217;t have widgets installed, head off to <a href=\"http:\/\/automattic.com\/code\/widgets\/\">Automaticc&#8217;s Widgets project page<\/a> and follow their extremely helpful instructions on how to install widgets and add them to your blog template. <\/p>\n<p>You can find lots of useful widgets via the <a href=\"http:\/\/widgets.wordpress.com\/\">WordPress Widgets blog<\/a>.<\/p>\n<p><a rel=\"dofollow\" href=\"https:\/\/anaksantai.com\/category\/android\" title=\"perbandingan smartphone\" style=\"font-size:1px\">perbandingan smartphone<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>February 21, 2008: Version 1.2. Bug-fix to ensure that it works with the new datastructure in the latest versions of WordPress. A huge thank you to Will Howells for fixing this. September 16, 2006: Version 1.1. Bug-fix to ensure that it &#8216;remembers&#8217; your root page when the Widget page is updated. Here&#8217;s the first of &hellip; <a href=\"https:\/\/www.martintod.org.uk\/blog\/2006\/08\/first-non-lib-dem-wordpress-widget\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;First non-Lib Dem WordPress widget&#8230;&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,7,23],"tags":[],"class_list":["post-71","post","type-post","status-publish","format-standard","hentry","category-technology","category-widgets","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/comments?post=71"}],"version-history":[{"count":2,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":532,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/posts\/71\/revisions\/532"}],"wp:attachment":[{"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/media?parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/categories?post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.martintod.org.uk\/blog\/wp-json\/wp\/v2\/tags?post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}