Description
Implement [bw_group] shortcode to count posts by groupImplement advanced counting to show the count of posts grouped by a particular field With a shortcode something like this [bw_group post_type=competitor meta_key=_event meta_value=52 field=playing_status ]
Usage
bw_group( $atts, $content, $tag );Parameters
- $atts
- ( mixed ) optional –
- $content
- ( mixed ) optional –
- $tag
- ( mixed ) optional –
Returns
voidTO DO
Count the number of different values for a group of fields http://geekgirllife.com/alphabetical-index-of-posts-in-wordpressSource
File name: oik-fields/shortcodes/oik-group.phpLines:
1 to 10 of 10
function bw_group( $atts=null, $content=null, $tag=null ) { $class_name = bw_group_load_class( $atts ); if ( class_exists( $class_name ) ) { $groups = new $class_name(); $groups->process( $atts ); } else { p( "Class $class_name missing" ); } return( bw_ret() ); }View on GitHub
Called by
Invoked by
Calls
1 to 4 of 4
