You appear to be a bot. Output may be restricted
Description
Format the tree – as a nested listTo create trees of the children for each page, these functions are called recursively. Whether or not this works with posts_per_page set is debateable.
Usage
bw_format_tree( $post, $atts );
Parameters
- $post
- ( post ) required – the current post to process
- $atts
- ( array ) required – shortcode parameters
Returns
voidSource
File name: oik/shortcodes/oik-tree.phpLines:
1 to 12 of 12
function bw_format_tree( $post, $atts ) { stag( "li" ); $url= get_permalink( $post->ID ); $title = $post->post_title; bw_push(); $title = do_shortcode( $title ); bw_pop(); BW_::alink( "bw_tree", $url, $title ); $atts['post_parent'] = $post->ID; bw_tree_func( $atts ); etag( "li" ); }View on GitHub View on Trac