Use bw_portfolio with id parameters when you want to identify the attachments to be paired.
[bw_portfolio id=5906,5907 class=issue30]
In this example:
- post ID 5906 is the image: cookies_guidance_v3
- post ID 5907 is the PDF with the same name: cookies_guidance_v3
With Gutenberg blocks it’s now very easy to display a PDF file using the core File block.