Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1618
    vas gargan
    Participant

    Is it possible to use the extra Attributes (like display_count, display_icon etc) not only with [download-attachments] shortcode but with [download-attachment] too?

    I want to display file size and hits for a single file somewhere within a post.

    Thanks!

    #1619
    Bartosz
    Keymaster

    It’s not possible to use those attributes for [download-attachment], while this is intended for quick, inline attachment download link display. But you can easily achieve that with [download-attachments] shortcode, by entering an attachment ID, removing list styling, download attachments title and other things you don’t need.

    #1622
    vas gargan
    Participant

    Thanks! I am new to WordPress and I am still not familiar with shortcodes.

    Very nice work you have done with DA. I gave it 5 stars and a really favorable review in wordpress.org!

    #1624
    Bartosz
    Keymaster

    Thank you :)

    #1628
    vas gargan
    Participant

    The below line has been added to the below post right under the featured image. The “Downloads List Display” from settings has been set to “manually”.

    [download-attachments include=”1359″ display_user=”true” style=”” title=””]

    http://vgargan.gr/education/iliko-didaskalias-fisikis-g-gimnasiou/

    As you can see for some reason, attributes are ignored. Any suggestions?

    #1630
    Bartosz
    Keymaster

    Please make a plugin update first. (and set your style to “none”)

    #1631
    vas gargan
    Participant

    Plugin updated and style set to “none” in the previous post (http://vgargan.gr/education/iliko-didaskalias-fisikis-g-gimnasiou/) with the same syntax ([download-attachments include=”1359″ display_user=”true” style=”none” title=””])

    As you can see some attributes are still not functional

    1) the user is not displayed
    2) all the attachments are displayed although only one is chosen

    Thanks!

    #1633
    Bartosz
    Keymaster

    The boolean value is false or true (without brakcets), 0 or 1. So this should work:

    [download-attachments container=”” title=”” style=”none” display_icon=false display_user=true]

    The CSS styling is up to you.

    #1634
    vas gargan
    Participant

    OK. But what about the include attribute?

    As I mentioned all the attachments are displayed although only one is chosen (include=”1359″)

    #1635
    Bartosz
    Keymaster

    Sorry, it would be safer to use it with 0 or 1 (with brakcets) like that:
    [download-attachments container=”” title=”” style=”none” display_icon=”0″ display_user=”1″]

    It looks that include and explude parameters don’t work properly. We’ll push an update shortly.

    #1637
    vas gargan
    Participant

    OK, I will wait for your update.

    Don’t forget to update your Documentation with the below guidelines.

    Sorry, it would be safer to use it with 0 or 1 (with brakcets) like that:
    [download-attachments container=”” title=”” style=”none” display_icon=”0″ display_user=”1″]

    #1638
    Bartosz
    Keymaster

    We just did both – updated documentation and the plugin itself.

    #1644
    Daniel Eke
    Participant

    Hi there!

    I didn’t wanted to start a new topic for my problem, but it seems, with the latest update the [download-attachments] shortcode not working for me. (It shows only the <pre> tags whatever attributes I use)
    Has anyone else reported such problems or I just can’t configure the plugin properly?

    Thanks!

    #1666
    Bartosz
    Keymaster

    Daniel, I insist you create a new topic on that one and please provide a link to your site.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.