post_parent= parameter to de-restrict the selection criteria.
[bw_pdf post_parent=. titles=n]
Notes
- By default the shortcode automatically attaches a post_parent value of the current post ID to the query performed. e.g.
post_parent=13962for this post. - If you use
post_parent=0, then the shortcode will list PDF files which are NOT attached to any specific post. - Using
post_parent=.causes the query to NOT USE the post_parent parameter, thereby allowing you to list attachments ( post_type=attachment ) regardless of whether or not it’s attached to a parent post. - Any non-numeric value for
post_parent=will work. - When you use the bw_pdf shortcode the styling will display the Acrobat Reader image for a PDF file. If you don’t want this you can specify the
class=noiconparameter. - The shortcode will also default to displaying the post title again, immediately following the PDF download link. Either use
titles=nto prevent this or style the output using custom CSS.
