You appear to be a bot. Output may be restricted
Description
Get special post types
Usage
$array = bw_get_special_post_type( $atts );
Parameters
- $atts
- ( array ) required – array of shortcode parameters
Returns
array $posts – array of "posts" Initially the only special post_type supported was "screenshot" This allowed oik-nivo-slider to display its own screen shot files: screenshot-n.png Now we're looking at supporting NextGEN: ngg_pictures, ngg_gallery or ngg_albumSource
File name: oik-nivo-slider/nivo.phpLines:
1 to 13 of 13
function bw_get_special_post_type( $atts ) { $explode = explode( ':', $atts['post_type'] ); $type = bw_array_get( $explode, 0, "screenshot" ); $funcname = "bw_get_spt_$type"; //$funcname = bw_funcname( "bw_get_spt_", $type ); if ( function_exists( $funcname ) ) { $posts = $funcname( $atts ); } else { e( sprintf( __( 'Unsupported special post_type: %1$s', "oik-nivo-slider" ), $type ) ); $posts = null; } return( $posts ); }View on GitHub View on Trac