Description
Process pairs of attachments
Usage
$output = bw_paired_attachments( $posts, $atts );Parameters
- $posts
- ( array ) required – array of posts
- $atts
- ( array ) required – shortcode parameters
Returns
output produced by bw_format_matched_link()Source
File name: oik/shortcodes/oik-attachments.phpLines:
1 to 9 of 9
function bw_paired_attachments( $posts, $atts ) { bw_trace2( $posts, "posts" ); foreach ( $posts as $post ) { $matched_post = bw_find_post( $posts, $post ); if ( $matched_post ) bw_format_matched_link( $post, $matched_post, $atts ); } return( bw_ret()); }View on GitHub View on Trac
Invoked by
Calls
1 to 4 of 4
- bw_find_post() – Find a post in an array of post using the specified $matchfunc This routine will not find the $given post
- bw_format_matched_link() – Format the matched post link
- bw_ret() – Use bw_ret() to return the contents of $bwecho, leaving the global value as NULL
- bw_trace2() – Trace $value to the trace log file if tracing is active
