WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Shortcode is listing all mime types by default

[Resolved] Shortcode is listing all mime types by default

  • The latest update has changed the way files are listed on my pages. I use this shortcode:

    [pdfmenu orderby=”title ASC”]

    which listed only pdf files before… now I get ALL mime types attached to the page.

    I also use this shortcode:

    [pdfmenu post_mime_type=”application/pc” target=”_self” orderby=”title ASC”]

    which listed only files with a .pc extension, and now also returns ALL mime types.

    Help? These shortcodes are used on several *hundred* pages. I surely hope I will not have to change each one!

    http://wordpress.org/extend/plugins/cop-pdf-attachment-menu/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Trevor Green

    @trevogre

    The default behavior should not have changed. I will look into this. I added the ability to list all mime types but you should have to set all_types=”true” in order to have that work.

    Additionally I see another issue. orderby=”title” order=”ASC” should be how you set the order. If it is working the other way that is just by accident and/or potentially poor coding on my part to not sanitize the options.

    So I found it, in the update I have the widgetized version running smoothly but left out a few quotes in the new option on the shortcode. I’m posting a new version now (0.0.9.6) which should resolve the issue.

    Thanks for the feedback and here is hoping the last version didn’t cause too many bumps in the road.

    Plugin Author Trevor Green

    @trevogre

    Sally, please notify me if the plugin now works as expected so that I can close this thread.

    Will do. WP is still trying to upgrade me to 9.5 (I reverted to an older version until the issue was fixed) so I’ll wait until they offer me 9.6 and let you know. Thanks so much for the quick response!

    Perfect. Thank you so much!

    Plugin Author Trevor Green

    @trevogre

    My pleasure, consider a donation through the donation link. I’m intending to give people a plug on my site to anyone who donates. I’m not sure if I’m doing it withing the community standard but I’m experimenting with it all the same.

    I put up some various suggested levels of donations. Actually I don’t even know if they mechanism works but if you go on there and throw me a dollar that would confirm it for me. Haven’t tested it myself.

    Also make note that the plugin should now output a class with the mime type in it. And as I say that I realize that I think I need to remove the / as that is probably not valid css.

    As soon as my site goes live this week I’ll throw you more than a dollar. 🙂 It’s a great plugin–thanks.

    Plugin Author Trevor Green

    @trevogre

    Much appreciated. Let me know if you have any additional ideas that would improve the experience for you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Resolved] Shortcode is listing all mime types by default’ is closed to new replies.