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 16 of 16
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; $args['exclude'] = -1; bw_trace2( $args, "args", false ); $posts = bw_get_posts( $args ); $options = bw_post_array( $posts ); return( $options ); }View on GitHub View on Trac
Called by
1 to 1 of 1
Invoked by
Calls
1 to 2 of 2
