Hello,
I am trying to pull an attachment URL for my posts from the loop.
More specifically, I am in archive pages, using archives to display each of my categories. Some of my posts will contain links to download PDFs. Back in the archive/category loop, I am pulling the excerpt for each post, but I'm not sure how to get the link to the PDF from within each post and display that below the excerpt.
I found this post:
http://wordpress.org/support/topic/referring-to-an-attachment-file-in-the-loop?replies=3
Which is along the lines of what I need, but it seems to be pulling just the most recent attachment from the media library and including a link to that on every post, rather than pulling the PDF links from within each individual post.
Any ideas? Thanks.