You appear to be a bot. Output may be restricted
Description
Format the meta data for the 'post'
Usage
bw_format_meta( $customfields );
Parameters
- $customfields
- ( array ) required – array of meta data for a post The $customfield data may itself be an array. e.g. For multiple select noderef's Each field formatter should be able to cater for multiple values. Most of them simply extract array[0]
- $customfields
- ( array ) required – array of fields to display
Returns
voidSource
File name: oik/libs/bw_fields.phpLines:
1 to 16 of 16
function bw_format_meta( $customfields ) { //bw_backtrace(); foreach ( $customfields as $key => $customfield ) { $value = $customfield; // $value = bw_array_get( $customfield, 0, $customfield ); **?** is it OK to pass an array everywhere? Herb 2013/10/24 $cf = array( $key => $value ); //bw_trace2( $cf, "cf" ); sdiv( "bw_metadata $key" ); $do_label = bw_format_label( $cf ); if ( $do_label ) { bw_format_sep( $cf ); } bw_format_field( $cf ); ediv( "metadata $key" ); } }View on GitHub View on Trac