bw_portfolio() – Display image links to PDF files

You appear to be a bot. Output may be restricted

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 shortcode

Source

File name: oik/shortcodes/oik-attachments.php
Lines:

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 Trac