class=”parent” for wp_list_pages?
Phew! Bit more complex than I would’ve liked – if only the filter page_css_class passed back $args it would save a lot of effort (may submit this to trac). Since 3.3 it’s as easy as this! function add_parent_class( $css_class, $page, $depth, $args ) { if ( ! empty( $args[‘has_children’] ) ) $css_class[] = ‘parent’; return … Read more