Forums

[resolved] How to display description of uploaded media (4 posts)

  1. smoo
    Member
    Posted 3 years ago #

    Hi,
    I am making a site which will contain quite a few downloadable .pdf documents.

    I can see how to add a .pdf document into to a page then add a title, caption & description.
    I also understand I can choose whether the resulting link goes straight to the document or to another page containing a link to the document with the description underneath.

    However, what I'd really like to do is list each document link with it's description on the first page;

    Failing that, I would like to edit the second page that lists the link followed by the description, but can't find where to edit it.

    The closest I can find is image.php, but editing that doesn't seem to affect that second page...

    (I've found references to 'attachment.php' but that doesn't exist in my /wp_content/themes/default/ folder, and when I created one from image.php, it displayed the description but not the link to the file..)

    Have also looked for a plugin that might manage the files somehow, but haven't found one that has such simple functionality..

    Any help greatly appreciated!
    Thanks

  2. MichaelH
    Volunteer
    Posted 3 years ago #

    Have you considered a plugin such as WP-DownloadManager?
    http://wordpress.org/extend/plugins/wp-downloadmanager/

    Just for info:
    Function_Reference/get_children

  3. Matthew Muro
    Member
    Posted 3 years ago #

  4. smoo
    Member
    Posted 3 years ago #

    Thank you both for your help,
    I have just spent all day trying to make 'get_children' show the description and/or caption of a doc; I had a variety of interesting results and feel like I was tantalisingly close to something, but couldn't quite get it to do what I wanted. Alas, my php skills are not quote up to it yet. Still, I learned a bit more, which is always useful.

    I tried wp-downloadmanager, but found it incredibly confusing and not very well documented. I finally figured out that it puts an icon in the 'visual' tab of TinyMCE (which I never use!) but even then, it created a link to a 404 rather than the doc I chose. Must be missing something, but lacking any further instruction on how to use it I gave up.

    However, have just found this plugin:
    http://www.emmanuelgeorjon.com/en/eg-attachments-plugin-for-wordpress-1233/
    which seems to do exactly what I need!

    Will have a look at the functions and see if I was anywhere close with my efforts..

    Thanks again for your time and help.

Topic Closed

This topic has been closed to new replies.

About this Topic