You appear to be a bot. Output may be restricted
Description
Wrapper to wp_list_bookmarks()which replaces get_links()
Usage
bw_bookmarks( $atts );
Parameters
- $atts
- ( mixed ) optional –
Returns
voidSource
File name: oik/shortcodes/oik-bookmarks.phpLines:
1 to 21 of 21
function bw_bookmarks( $atts = NULL ) { // Copy the atts from the shortcode to create the array for the query // removing the class and title parameter that gets passed to bw_block() $attr = $atts; //bw_trace( $atts, __FUNCTION__, __LINE__, __FILE__, "atts" ); //bw_trace( $attr, __FUNCTION__, __LINE__, __FILE__, "attr" ); /* Set default values if not already set */ $attr['limit'] = bw_array_get( $attr, "numberposts", -1 ); $attr['orderby'] = bw_array_get( $attr, "orderby", "name" ); $attr['order'] = bw_array_get( $attr, "order", "ASC" ); $attr['category_name'] = bw_array_get( $attr, "category_name", NULL ); // $attr['exclude'] = bw_array_get( $attr, "exclude", $GLOBALS['post']->ID ); $attr['echo'] = 0; //bw_trace( $attr, __FUNCTION__, __LINE__, __FILE__, "attr" ); $posts = wp_list_bookmarks( $attr ); //bw_trace2( $posts, "bw_bm_posts"); return( $posts ); }View on GitHub View on Trac