function bw_metadata( $atts=null, $content=null, $tag=null ) {
if ( !oik_is_shortcode_expansion_necessary() ) {
return "Not today thank you.";
}
$post_id = bw_array_get( $atts, "id", null );
if ( '.' === $post_id ) {
$post_id = bw_current_post_id();
}
I then found an alternative solution; use [bw_field] instead of [bw_fields].
I could use this because I did not need the field's prefix.
@TODO decide best way to deal with nested usage of this shortcode or multiple usage of this shortcode
* when the post we're trying to process is different from the main post.
* This happens when we are combining information from multiple posts into one output.
* Current solution is to not produce anything, not even 'Not single'