Description
Implement [bw_testimonials] shortcodeDefaults: * numberposts=5, post_type=oik_testimonials, orderby=rand
Usage
$expanded = bw_testimonials( $atts, $content, $tag );Parameters
- $atts
- ( array ) optional – shortcode parameters
- $content
- ( string ) optional – not expected
- $tag
- ( string ) optional –
Returns
expanded shortcodeSource
File name: oik-testimonials/shortcodes/oik-testimonials.phpLines:
1 to 11 of 11
function bw_testimonials( $atts=null, $content=null, $tag=null ) { bw_testimonials_jq( $atts ); $atts['numberposts'] = bw_array_get( $atts, "numberposts", 5 ); $atts['post_type'] = bw_array_get( $atts, "post_type", "oik_testimonials" ); $atts['orderby'] = bw_array_get( $atts, "orderby", "rand" ); $atts['post_parent'] = 0; oik_require( "shortcodes/oik-pages.php" ); e( bw_pages( $atts )); ediv(); return( bw_ret()); }View on GitHub
Called by
Invoked by
Calls
1 to 3 of 3
