I’m building a site and each post has a PDF file attachment. Is there a way I can access that file outside the_content()
on a single post page? I’d like to put the file attachment in a sidebar and not in the body of the post.
Leave a Reply
You must be logged in to post a comment.
Try the following code:
I ended up using the WP-Filebase Download plugin. This allowed me to pull the attachments into a shortcode list that I could put in my template file outside `