You appear to be a bot. Output may be restricted
Description
Display a list of links given the post IDs
Usage
bw_links( $atts, $content, $tag );
Parameters
- $atts
- ( mixed ) optional –
- $content
- ( mixed ) optional –
- $tag
- ( mixed ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-parent.phpLines:
1 to 22 of 22
function bw_links( $atts=null, $content=null, $tag=null ) { $ids = bw_array_get( $atts, "id", null ); $outer = bw_array_get( $atts, "outer", "ul" ); $inner = bw_array_get( bw_inner_tags(), $outer, null ); $class = bw_array_get( $atts, "class", "bw_links" ); if ( $ids ) { $ids = bw_array( $ids ); stag( $outer ); foreach ( $ids as $id ) { $post = get_post( $id ); if ( $post ) { stag( $inner ); bw_post_link( $id, $class ); etag( $inner ); } } etag( $outer ); } else { //bw_parent(); } }View on GitHub View on Trac