WordPress.org

Ready to get started?Download WordPress

Forums

COP PDF Attachment Menu
[resolved] Shortcode is listing all mime types by default (8 posts)

  1. sallydeford
    Member
    Posted 1 year ago #

    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/

  2. Trevor Green
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. Trevor Green
    Member
    Plugin Author

    Posted 1 year ago #

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

  4. sallydeford
    Member
    Posted 1 year ago #

    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!

  5. sallydeford
    Member
    Posted 1 year ago #

    Perfect. Thank you so much!

  6. Trevor Green
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  7. sallydeford
    Member
    Posted 1 year ago #

    As soon as my site goes live this week I'll throw you more than a dollar. :) It's a great plugin--thanks.

  8. Trevor Green
    Member
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.