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
Called by
1 to 1 of 1
Invoked by
Calls
1 to 7 of 7
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_el() – End a list
- bw_format_list() – Format the "post" – in a simple list item list
- bw_get_posts() – Wrapper to get_posts()
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
- bw_sl() – Start a list
- oik_require() – Invoke require_once on an oik include file or other file
