Hi there!
It seems to be the troubleshooting forum is down, so i have decided to post here.
My problem is, i want to make a navigation like in this codex:
http://codex.wordpress.org/Function_Reference/wp_list_pages
Pleas head for this text:
Page List that: Only displays if child (sub) pages exist, displays page list of subpages on the parent page AND on the child pages HOWEVER this code keeps the parent page name in the title which makes it different from the previous example.)
So, if i try that, it doesn’t work. Nothing is displayed.
BUT if i try the example above this one, it works. But unfortunely i don’t want the above (simple as is) example.
So i want to make my navigation like this:
<?php
if($post->post_parent) {
$children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0");
$titlenamer = get_the_title($post->post_parent);
}
else {
$children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
$titlenamer = get_the_title($post->ID);
}
if ($children) { ?>
<h2> <? echo $titlenamer ?> </h2>
<ul>
<?php echo $children; ?>
</ul>
<?php } ?>
…to running with my template “Silentfilm”!
But as i said, this example doesn’t work. It shows nothing for me on my site. -.-” Really annoying!
So i want to solve this problem for first!
What i have to do, to make this “work around” working?
~~~~~
My second little problem:
I want to make a widget with the navigation (if working soon) and i don’t know how i can do this.
Has anyone a couple of ideas how to make a widget with the navigation?
Thank you very much!
Hope anyone can help me…
Best regards, miow
