You appear to be a bot. Output may be restricted
Description
Load flat posts
Usage
$array = bw_load_noderef2_flat( $post_type, $args );
Parameters
- $post_type
- ( string ) required –
- $args
- ( array ) required – additional parameters to bw_get_posts
Returns
array of the optionsSource
File name: oik/includes/bw_noderef2.phpLines:
1 to 12 of 12
function bw_load_noderef2_flat( $post_type, $args ) { if ( $post_type !== "attachment" ) { $args['post_parent'] = 0; } else { unset( $args['post_parent'] ); $post_type = array( $post_type, 1 ); } $args['post_type'] = $post_type; $posts = bw_get_posts( $args ); $options = bw_post_array( $posts ); return( $options ); }View on GitHub View on Trac