Description
Display image links to PDF files For each .PDF file that is linked to an image pair them up and display with the image and the PDF file name as the selector and the PDF file name as the link.
Usage
$string = bw_portfolio( $atts );Parameters
- $atts
- ( array ) optional – shortcode parameters
Returns
string expanded shortcodeSource
File name: oik/shortcodes/oik-attachments.phpLines:
1 to 8 of 8
function bw_portfolio( $atts = NULL ) { $atts['post_type'] = bw_array_get( $atts, "post_type", "attachment" ); $atts['post_mime_type'] = bw_array_get( $atts, "post_mime_type", "image,application/pdf" ); $atts['orderby'] = bw_array_get( $atts, "orderby", "title" ); $atts['order'] = bw_array_get( $atts, "order", "ASC" ); $posts = bw_get_posts( $atts ); return( bw_paired_attachments( $posts, $atts )); }View on GitHub View on Trac
Called by
Invoked by
Calls
1 to 3 of 3
