You appear to be a bot. Output may be restricted
Description
Simplify post array to the hierarchical orderDoes this keep the posts in the order they were retrieved by get_pages?
Usage
$array = bw_post_array_hier( $posts );
Parameters
- $posts
- ( array ) required – array of post objects
Returns
array $options – array of post optionsSource
File name: oik/includes/bw_noderef2.phpLines:
1 to 12 of 12
function bw_post_array_hier( $posts ) { $args = array(); $args['depth'] = 0; $args['selected'] = 0; $walker = new bw_post_Walker; $args['walker'] = $walker; $output = walk_page_dropdown_tree( $posts, 0, $args ); //echo $output; $options = $walker->post_array; bw_trace2( $options ); return( $options ); }View on GitHub View on Trac