donnytree
Forum Replies Created
-
I am curious about this as well, did anyone ever get back to you? Or did you ever figure it out?
Forum: Fixing WordPress
In reply to: current_page_parent displaying subnav of other items at 3rd levelAnyone?
Forum: Fixing WordPress
In reply to: Listing Other Children of Parent PageFor that I use this plugin: Classy wp_list_pages
And then have this code in my css:
li.current_page_item a, li.current_page_parent a { } li.current_page_item ul.children a {}Forum: Fixing WordPress
In reply to: Listing Other Children of Parent PageGreat! And just to clean it up a little:
<?php $children = wp_list_pages('title_li=&child_of='.$post->post_parent.'&echo=0'); if ($children) { echo $children; } ?>Forum: Fixing WordPress
In reply to: Listing Other Children of Parent PageSo is this in your side navigation? What happens when you go to a child page? The navigation all disappears or it only shows it’s own children?
For my side navigation, I first test for the parent page and then call wp_list_pages, e.g.,
$parent = $post->post_parent; $parentTitle = get_the_title($parent); if ($parentTitle == 'Library') { wp_list_pages("title_li=&child_of=$parent&depth=0" ); }This lists the pages and subpages. I hope this helps.
Forum: Fixing WordPress
In reply to: current_page_parent displaying subnav of other items at 3rd levelNo one can help? This is driving me nuts…