You appear to be a bot. Output may be restricted
Description
Implement [bw_group] shortcode to count posts by group
Implement 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
void
TO DO
Count the number of different values for a group of fields http://geekgirllife.com/alphabetical-index-of-posts-in-wordpress
Source
File name: oik-fields/shortcodes/oik-group.php
Lines:
1 to 11 of 11
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() ); }