Does WordPress 3.5 Still Support is_tree ?
-
Greetings:
I have been adding is_tree to my themes with this code and then using is_tree to conditionally display or not display certain widgets in my side bar:
function is_tree($pid) { global $post; $anc = get_post_ancestors( $post->ID ); foreach($anc as $ancestor) { if(is_page() && $ancestor == $pid) { return true; } } if(is_page()&&(is_page($pid))) return true; else return false; };
Today upon upgrade to 3.5 I had several client’s sites blow up. Does anyone else use is_tree as a conditional and is this method still functioning in 3.5. For me it does not seem to work any more
If this is not the preferred method, what other solution is there for targeting parent/child pages?
Any help would be greatly appreciated…
Best Regards!
Viewing 14 replies - 1 through 14 (of 14 total)
Viewing 14 replies - 1 through 14 (of 14 total)
- The topic ‘Does WordPress 3.5 Still Support is_tree ?’ is closed to new replies.