{"id":11273,"date":"2010-08-10T09:20:57","date_gmt":"2010-08-10T07:20:57","guid":{"rendered":"https:\/\/nl.wordpress.org\/support\/topic\/class-functie-waar-in-sidebarphp-plaatsen-voor-hoofd-en-subpaginas\/"},"modified":"2016-08-04T23:20:02","modified_gmt":"2016-08-04T23:20:02","slug":"class-functie-waar-in-sidebarphp-plaatsen-voor-hoofd-en-subpaginas","status":"closed","type":"topic","link":"https:\/\/nl.wordpress.org\/support\/topic\/class-functie-waar-in-sidebarphp-plaatsen-voor-hoofd-en-subpaginas\/","title":{"rendered":"class functie waar in sidebar.php plaatsen voor  hoofd en subpagina&#039;s"},"content":{"rendered":"<p>Ik wil deze code toevoegen om hoofd en subpagina&#8217;s in mijn sidebar weer tegeven in sidebar.php;<\/p>\n<pre><code>&lt;ul class=&quot;sidebar&quot;&gt;\n  &lt;?php\n  $child_of = wpe_highest_ancestor();\n  wp_list_pages(&#039;child_of=&#039;.$child_of.&#039;&amp;title_li=&lt;h5&gt;&#039;.esc_attr(get_the_title($child_of)).&#039;&lt;\/h5&gt;&#039;);\n  ?&gt;\n&lt;\/ul&gt;<\/code><\/pre>\n<p>Waar moet ik de code plaatsen? In head? of body? of ergens anders?<\/p>\n","protected":false},"template":"","class_list":["post-11273","topic","type-topic","status-closed","hentry","topic-tag-code","topic-tag-hoofdpagina","topic-tag-sidebar","topic-tag-subpagina"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11273\/revisions"}],"wp:attachment":[{"href":"https:\/\/nl.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}