You appear to be a bot. Output may be restricted
Description
Build and format a treeDisplay the hierarchy of a post type in a simple tree
Usage
bw_tree_func( $atts );
Parameters
- $atts
- ( array ) required – shortcode parameters
Returns
voidSource
File name: oik/shortcodes/oik-tree.phpLines:
1 to 10 of 10
function bw_tree_func( $atts ) { $posts = bw_get_posts( $atts ); if ( count( $posts ) ) { stag( "ul" ); foreach ( $posts as $post ) { bw_format_tree( $post, $atts ); } etag( "ul" ); } }View on GitHub View on Trac