Description
Format the Categories (format=c)
Usage
bw_field_function_categories( $post, $atts, $f );Parameters
- $post
- ( mixed ) required –
- $atts
- ( mixed ) required –
- $f
- ( mixed ) required –
Returns
voidSource
File name: oik/includes/bw_formatter.phpLines:
1 to 4 of 4
function bw_field_function_categories( $post, &$atts, $f ) { $categories_list = get_the_category_list( ",", "", $post->ID ); bw_field_function_metadata( "bw_categories", __( "Categories", "oik" ), $categories_list ); }View on GitHub View on Trac
Called by
1 to 2 of 2
- Tests_includes_bw_formatter::test_bw_field_function_categories() – This test will return a null list of categories since "Category" is not associated to the "page" post type
- Tests_includes_bw_formatter::test_bw_field_function_categories_bb_BB() – This test will return a null list of categories since "Category" is not associated to the "page" post type
