WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Categories
Media Categories - Featured Image (16 posts)

  1. Mathew.Coles
    Member
    Posted 2 years ago #

    Hi, if you use Media Categories to find a picture, when you select "use for featured Image" this does not seem to work!

    http://wordpress.org/extend/plugins/media-library-categories/

  2. KevinLycett
    Member
    Posted 2 years ago #

    I'm having the same problem and would be very grateful if anyone has the answer!

  3. sireneweb
    Member
    Posted 2 years ago #

    same for me. Do you think it's due to new release wordpress 3.3.2 ? is it ok with 3.3.1 ?

  4. sireneweb
    Member
    Posted 2 years ago #

    i found an solution replace the code for your mediaUploadTab.php by this

    mediaUploadTab.php

  5. sireneweb
    Member
    Posted 2 years ago #

    i disable .js and replace "$" by "jQuery" and use new function "WPSetAsThumbnail2" to manage "use for featured Image"

  6. KevinLycett
    Member
    Posted 2 years ago #

    Yup, that works. Many, many thanks sirenweb for sharing this fix, I've got a happy client now!

  7. sireneweb
    Member
    Posted 2 years ago #

    there are a little bug in my fix, take this new file :

    [383 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

  8. sireneweb
    Member
    Posted 2 years ago #

    i think i'm going to developp new version because there a lot of bug with media categories.

  9. KevinLycett
    Member
    Posted 2 years ago #

    Wow.
    Is it your plugin?

  10. sireneweb
    Member
    Posted 2 years ago #

    no, but i'm using for my work

  11. KevinLycett
    Member
    Posted 2 years ago #

    It's a great plugin, but I'm worried about the bugs. I don't think I'll be using it for any more clients!

  12. Mathew.Coles
    Member
    Posted 2 years ago #

    Hi I think that would be a great idea as I don't know how to make the changes you are suggesting! please let me know when you have made the changes to the plugin

  13. KevinLycett
    Member
    Posted 2 years ago #

    Mathew, follow sirenwebs link in her/his second post above, copy the code she/he has supplied. Access the plugin in your site via FTP. Find the file called mediauploadtab.php (it's in wp-content/plugins/media-library-categories/includes). Replace all the code in this file with the code you've copied, save the file. voila!

  14. sireneweb
    Member
    Posted 2 years ago #

    New fix :
    - fix the bug to 'Insert into Post' when you select picture with "show links" for woocommerce category
    - fix the bug to 'Insert into Post' when you check picture.
    - apply somes fixes to be more compatibility with media functions

    take the new files :

    [ 387 lines of code moderated. For more than 10 lines of code please pastebin.com instead. ]

    In the future release :
    - use get_image_send_to_editor, get_image_tag, image_size_input_fields

  15. sireneweb
    Member
    Posted 2 years ago #

    the new links for update file :

    addMediaUploadTab.php

    26-04-2012 Fix :
    - solve bug with ACF plugins when you use with repeater field image or field image. (last bug found, display 2 checkbox)
    - solve the bug to 'Insert into Post' when you select picture with "show links" for woocommerce category
    - solve the bug to 'Insert into Post' when you check picture.
    - apply somes fixes to be more compatibility with media functions

  16. dgodfather
    Member
    Posted 2 years ago #

    @ sireneweb

    Using your latest addmediauploadtab.php code, the thumbnails in the media categories tab of the media library aren't showing up for me. Is this a bug with your fix?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic