• Resolved mpeill

    (@mpeill)


    Excellent plugin. One request, I can get the table format to display filename and file size, but I’d like filename and file date …… sounds easy, but I can’t figure it!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Adam Bissonnette

    (@mmanifesto)

    A really simple way to do this is with the “li” format instead of a table like this:

    [MMFileList format=’li’ types=’pdf’ dateformat=’d-m-Y’]{name} ({date})[/MMFileList]

    If you want to accomplish the same with a table you’ll need to use the custom format.

    You should be able to do it like this:

    <table>
    <tr>
    <th>Filename</th>
    <th>Date</th>
    </tr>
    [MMFileList format='custom' types='pdf' dateformat='d-m-Y']
    <tr><td><a href='{url}'>{name}</a></td><td>{date}</td></tr>
    [/MMFileList]
    </table>

    Here is an example of it on my site:
    https://www.mediamanifesto.com/uncategorized/test-shortcode/

    Let me know if this helps – cheers!

    Thread Starter mpeill

    (@mpeill)

    That did the trick, thanks for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Filename and Date’ is closed to new replies.