You appear to be a bot. Output may be restricted
Description
Implement [bw_list] shortcodeList sub-pages of the current or selected page – in a simple list This is similar to [bw_pages] but it produces a simple list of links to the content type
[bw_list class="classes for the list"
- post_type='page'
- post_parent=0
- orderby='title'
- order='ASC'
- posts_per_page=-1
- thumbnail=specification - see bw_thumbnail()
- customcategoryname=custom category value
Usage
bw_list( $atts, $content, $tag );
Parameters
- $atts
- ( mixed ) optional –
- $content
- ( mixed ) optional –
- $tag
- ( mixed ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-list.phpLines:
1 to 11 of 11
function bw_list( $atts=null, $content=null, $tag=null ) { oik_require( "includes/bw_posts.php" ); $posts = bw_get_posts( $atts ); $atts['thumbnail'] = bw_array_get( $atts, "thumbnail", "none" ); $ol = bw_sl( $atts ); foreach ( $posts as $post ) { bw_format_list( $post, $atts ); } bw_el( $ol ); return( bw_ret() ); }View on GitHub View on Trac