At “De B.A.A.T.” we work at WordPress plugins and advice regarding ICT Architecture or Social Media.

You can reach us using either one of the following:

Mobile:   +31 6 510 10 825
Twitter:   @De_BAAT or
@JandB65 (Private)
LinkedIn:   View Jan de Baat's profile on LinkedIn
Post:   Lottinge 62
9481GZ Vries (D)
KvK number:   52587029
VAT number:   NL002016767B04
Bank account number:   NL51 TRIO 0198 4986 59 (IBAN)


  1. The plugin causes a critical error that prevents WooCommerce pages from being fully rendered. The relevant error;
    CRITICAL Uncaught ArgumentCountError: Too few arguments to function WP_MCM_Taxonomy::mcm_get_the_archive_title(), 1 passed in /var/www/ on line 308 and exactly 3 expected in /var/ www/
    stack trace:
    #0 /var/www/ WP_MCM_Taxonomy->mcm_get_the_archive_title(‘Make Decoration’)
    #1 /var/www/ WP_Hook->apply_filters(‘Create Decoration’, Array)
    #2 /var/www/ apply_filters(‘get_the_archive…’, ‘Create decoration’)
    #3 /var/www/ uncode_archive_title()
    #4 /var/www/ include(‘/var/www/nieuwv…’)
    #5 /var/www/ require_once(‘/var/www/nieuwv…’)
    #6 /var/www/ in /var/www/ on line 95

    I have had this error since the beginning of June and today 22/6 with the version 2.1.1 it is still the case. With the deactivation of the plugin, the WordPress site is functional.

    • Thanks for using my plugin and reporting this issue.
      However, would you mind to look at the use of the “get_the_archive_title” filter in your Uncode theme?
      Unfortunately, this is a premium theme so I cannot test it myself.

      Your stack trace suggests it uses that hook in “template-tags.php” on line 312.
      When I look at the use of the filter in the WP code V6.2.2., in “general-template.php”, starting at line 1777, it reads:
      * Filters the archive title.
      * @since 4.1.0
      * @since 5.5.0 Added the `$prefix` and `$original_title` parameters.
      * @param string $title Archive title to be displayed.
      * @param string $original_title Archive title without prefix.
      * @param string $prefix Archive title prefix.
      return apply_filters( 'get_the_archive_title', $title, $original_title, $prefix );

      This defines the use of three parameters, as I used in my WP MCM code.
      I could make the last two parameters optional to make it more flexible, but that might take a while to release a new version of the plugin.

      Hope this helps.
      Best regards.

  2. Hi, I came across a couple bugs with this plugin.
    First, the sort by date is broken on the tile view of the media page when this plugin is enabled, but it still works on the list view.
    Second, I am unable to update categories if editing the media item from the list view, but I can update categories if editing it from the tile view.
    Hopefully you can get these two things fixed. Otherwise it is a very useful plugin.

  3. Hi Jan,

    When I used to create a new post on WordPress pre 5.1 and add a picture using “add media”, I always had this selection for an MCM category pull down in the Media manager inside a post. That made it simple for me to add pictures from a category e.g. “Styling” or “Most used”
    Now that seems gone and I can only see it in managing “Media” from the left sidebar.

    Cannot find the place where to activate that?

  4. I think WP Media Category Management might be precisely what I’m looking for. It is allowing me to have dynamic libraries based on the media category, which is perfect.

    I need to make one modification to the code, however, and I’m not sure where to do it. If the category contains “SOLD”, then I need to add a red bullet in front of the displayed caption. I do not need (nor want) the categories themselves to display.

    Any suggestions? Thanks, in advance, for your time.

    • Hai Rooze,
      Thanks for the compliment and the interesting challenge.
      I would suggest not to alter the code of the plugin as you might loose that when there is an update.
      And I don’t know about your coding skills, but I may have a solution.
      As you might deduct from the explanations for the shortcodes supported, there is the option to pass the wp_mcm selected media to another gallery shortcode. You might want to define a new gallery shortcode to do exactly what you want.
      Another option is to don’t us my shortcodes but write your own plugin to alter the caption definition. The categories you assign to the media are stored as terms for the media and therefore accessible via wp_get_object_terms().
      Hope this helps.

  5. I just purchased and installed your Store Locator Plus : Extended Data Manager today. I purchased it directly from Store Locator Plus. Everything installed and seemed to work correctly, but while I can remove or rename extended data fields, if I try to add a new one, nothing happens. It spins, seems to complete, but nothing ever appears.

    I purchased this along with the “Power” SLP add-on… I had previously had the “Pro” add-on, which is now no longer compatible.

    I’m running the following versions:

    WP: 4.7.2

    SLP: 4.7.4
    Power Add-on: 4.7.1
    Extended Data Manager: 4.5.01

    Any assistance would be greatly appreciated!


  6. Hallo Jan

    Ik gebruik je MCM categorie management plugin. Dit werkt moet ik zeggen voortreffelijk. Nu wil ik echter in de sidebar van elke pagina van een dropdownlist van gebruikte categorien plaatsen, maar dit lukt niet. Moet ik van alle MCM categorieen eerst wordpress categorieën maken (gelijk aan elkaar maken) of bestaat er geen eenvoudiger manier door het wijzigen van html code.

    • Hallo Harry,
      Dank voor je complimenten. En sorry dat ik niet eerder reageerde.
      Op mijn test site heb ik iets vergelijkbaars gemaakt, maar dan toch anders.
      Ik heb nl een “MCM Cat” menu gedefinieerd met daaraan toegevoegd links naar mijn MCM categoriën (handmatig).
      Dit menu heb ik vervolgens aan de sidebar toegevoegd middels een “Custom Menu” widget.
      Ik hoop dat dit helpt.

      • Hai Harry,
        Sorry, ik was even vergeten dat ik dit al een keer opgelost had in een “MCM Categories” widget.
        Helaas werkte die niet meer.
        Maar… In de nieuwe versie 1.9.0 heb ik dit gefixed.
        Kun je even kijken of dat werkt?

  7. Hi Jan, great plugin!! I’m using it on an image based site that have very specific search need so your plugin make it easier for me to get the results I need. I came across a problem as I’m no programmer. I’m using this function to get images inside a subcategory of a specific category:

    $args = array(
    ‘showposts’ => -1,
    ‘post_type’ => ‘attachment’,
    ‘post_parent’ => null,
    ‘post_status’ => ‘inherit’,
    ‘posts_per_page’ => 3,
    ‘tax_query’ => array(
    ‘taxonomy’ => ‘attachment_category’,
    ‘field’ => ‘slug’,
    ‘terms’ => ‘colecciones’

    It works great as I can see the images that I need. The problem is that I need to link each image with the category page, not the image page, and I can’t get it to show the category to make the link. This is the code to show the images:

    $attachments = get_posts( $args );
    if ( $attachments ) {
    foreach ( $attachments as $attachment ) {
    echo ”;
    echo wp_get_attachment_image( $attachment->ID, ‘thumbnail’ );
    echo ”;
    echo apply_filters( ‘the_title’, $attachment->post_title );
    echo ”;

    As you can see, the image is showing along with the title of the image. Maybe this is a very simple thing to do, but I have very little knowledge of programming so is complicated. I will apreciarte a lot any help you can give me.


    • Hai Naransim,
      Can you check the new shortcode attribute I added in version 1.9.0?
      This might deliver what you want, I hope.

  8. Hi Jan,

    I hope you’re doing well! 🙂

    My experience with the WP Media Category Management Plugin has just been fantastic. It saves TONS of time when managing hundreds of media items.

    Remember I told you about my 10 website experiment with over 1,000 images each site? Well, now we are adding an additional factor to 5 websites, a second language and we decided to use the WPML plugin.

    I’ve read the WPML instructions several times and have been looking for a way to translate the MCM Categories but I just can’t find where or how it could be done (if in fact it can be done).

    I tried using the WPML taxonomy translation addon but it doesn’t find MCM Categories, just the regular Post categories and the theme portfolio categories.

    Have you had any experience using your plugin with WPML plugin? Or maybe you can (once again hehe) point me to the direction of where I could find a way to translate MCM Categories.

    WPML has a media translation addon but it doesn’t duplicate the file name (so we can also use keywords in the file name in the proper language). This addon uses the same image file and just translates the information belonging to the image or media.

    So here I come to a dilema. I might need to rename all image filenames (gosh, they are over 1,000 hehe) using the second language for SEO purposes and attach the same language filename image to the pages and posts.

    So if I do this, having MCM Categories translated might not be a good idea because each english filename image would be linked to an english MCM category, so spanish filename images might have to be linked to additional spanish MCM categories. Am I making any sense? hehe.

    The second option would be to include english and spanish keywords in the image filenames and then use the WPML media translation tool. But in this case, I would need your MCM plugin to work with WPML to be able to have MCM categories in both languages, and both language categories linked to a single image.

    I hope I didn’t get you confused, but I’m very interested in hearing your thoughts and possible solutions.

    Thanks again Jan!



    • Hai Luis,
      Sorry for my late reaction, been to Barcelona for a small time off. 😉

      Unfortunately, I don’t have any experience with the WPML plugin. I use PolyLang for my multi-language sites.
      There I can define how to treat the media, whether to separate them by language or not.
      Further, when I define a featured image for a post, it uses the same image for the translated post.

      Hope this helps.

  9. Hi,

    First things first… Your WP Media Category Management Plugin is just awesome. I’ve tried many other WP media category plugins but yours is the best. Congratulations for developing such a nice and very useful plugin.

    Here’s my dilema. I hope you can point me to the right direction. I am conducting an experiment where I will have 10 websites competing against each other. These will be very large sites with different factors BUT with the same images. I’m talking about almost 1,000 images divided into almost 150 categories and sub-categories. This is where your plugin comes in so handy 🙂

    The problem is that creating 150 categories and sub-categories and then uploading almost 1,000 images all done manually in each of the 10 websites will be very time consuming. I’ve been looking for “export / import” plugins to see if I can create one site, then just export WP MCM category structure with all images and then import them to the other sites.

    Since the design, themes and content is different on each site, I couldn’t just clone the first site 10 times. Besides, sites are already created and they just need the categorized images so I can begin adding them to their posts, pages and portfolios.

    Do you know of a plugin, or any other way I can accomplish this (export just WP MCM category structure with all categorized images and import these to the other sites)?

    Thanks for any help you can give me.

    Best Regards,

    Luis Montoya

    • Hai Luis,
      First, thanks for the compliments.
      Second, interesting case you describe.
      My first thought was indeed to create a ‘template’ site and duplicate this. But you argued that wouldn’t work.
      Next, I found a plugin which could do what you want: “”.
      It exports the categories and taxonomies, including the ones defined for MCM Categories.
      If you then import the MCM Categories before you import the images themselves, you could use the Default Category feature of WP MCM.
      To use it, first set the default category to a value and then upload all images for that category. Then, switch the default category and upload those images. Continue until all images are uploaded.
      Hope this helps.
      Another tip might be to use keywords in the names of the files. You could then search for the media with a kayword and bulk assign the corresponding MCM Category to them in one go.
      Hope this helps.

      • Hi Jan,

        You know what, that WP Export Categories and Taxonomies plugin did the trick. It imported the WP MCM category structure correctly. I just wish there was another plugin that could allow me to upload all images through FTP and them import or link them to WP media and to their WP MCM category but maybe that would be too much to ask for hehe.

        I’ll just login to 3 or 4 blots at a time and set default categories and bulk upload images to each category. It’ll take me maybe 2 or 3 days but at least your recommended plugin saved me one day already 🙂

        Thanks again Jan!



        • Hai Luis,
          Good to hear it worked.
          Maybe another tip: Using the same import function, you could try to upload the images also.
          For this, you need to create one or more posts which contain the links to the images you would like to upload.
          Then export this post as you did with the categories.
          The export file will only contain the post information (probably of all posts…). It won’t contain the images itself, but it does have the links as defined in the post.
          When you then import the post to the other site, you have the option to also upload the images for the imported posts.
          If you define a post for each categeory with the respective images, you can combine that with the default upload category.
          Hope this helps as well.

  10. I came across a bug in the MCM plugin — when I checked “Use the category used for posts also explicitly for attachments?”, the categories worked fine for MCM — but disappeared from any other post-type where a plugin was using the default post categories. (Pages and a custom post type, in my case).

    If I left that box unchecked and simply used “[P]” in the taxonomy dropdown, the other plugins worked fine, and MCM was able to toggle categories and filter by categories — but the categories column disappeared from the Media Library admin view.

    To fix, I simply registered the post taxonomy for attachments. Everything seems to work fine for everyone now. My code:

    function prefix_register_taxonomy_for_images() {
    register_taxonomy_for_object_type( ‘category’, ‘attachment’ );
    add_action( ‘init’, ‘prefix_register_taxonomy_for_images’ );

    • Hai Steven,
      Thanks for using my plugin and reporting this issue.
      Had to confess I has some trouble understanding what you would want.
      But I think I’ve fixed it now.
      I also used the registration you coded, but only when the switch was enabled. In 1.7.4, I now also register the category when the current selected taxonomy is the post category.
      I hope this will fix the issue you have.
      Please let me know when it doesn’t.

      • I’m sorry, I should have been more clear. Here is my setup:

        1. Choose “[P] Categories” from the “Media Taxonomy to use” dropdown;
        2. DON’T check the checkbox for “Use the category used for posts also explicitly for attachments?”
        3. Use the code I wrote.

        If I do that, everything works fine.

        So your update doesn’t fix the problem. In fact, I had to revert back to the earlier version and continue using my code.

        There seems to be something about that checkbox that interferes with other plugins that use the default posts taxonomy for their custom post types. I don’t know what it is, and my code doesn’t fix it; all my code does is make sure the media library displays a “Category” column if that checkbox ISN’T checked, but I’ve chosen to use the posts taxonomy in the “Media Taxonomy to use” dropdown.

        • Hai Steven,
          Too bad this isn’t the solution. I would have thought it was because I now also activated the same code you entered in case the [P] category was selected.
          Can you tell me which plugins you are using that might interfere with what you want?
          Because I cannot reproduce the issue you describe.

  11. I have pages on my site that populate with posts given certain categories. With your latest update, now all the media images with that category also show up on those pages which I don’t want. So I have to turn off your plugin. With your plugin working as it did before, it served a very useful purpose. How can I work around this? Or can you send me the previous version of the plugin to install?

    Thank you.

    • Hai Brian,
      Thanks for using my plugin and sorry to hear that it doesn’t work as desired any more.
      From your description, I think the new functionality might hinder you. However, it is supposed to be controlled by the additional setting of “Search Media Library” on the Settings page.
      Can you check whether disabling this option would work for you?
      If this doesn’t help, can you provide me with some more information? E.g. a link to a page where the issue can be seen?
      Hope this helps.

  12. EML: I have downloaded version 1.05 off Enhanced Media Library. I would like the bulk editing functionality. Is this an additonal download script to add on to EML. Or is it built into this version but I havent been able to implement. Thankyou for your help. Amazing plugin. Hope I can get it to work bulk instead of one at a time.

    • Hai Rick,

      Thanks for the compliments.
      My bulk addition was coded in the original V1.0.4 version.
      Unfortunately, this functionality was broken with the introduction of WP 3.9.
      After contacting the original owner of the plugin, she promised to look into the bulk functionality to include it in V1.0.5.
      So, for now, I have no plans to port my addition to the new version.

Leave a Reply

Your email address will not be published. Required fields are marked *