Hello. My name is Noemi Millman, and Triopter is my web development agency. We handcraft beautiful, dynamic websites.

See what I can do for you.

Noemi Millman: Triopter: NKMImageField 0.6 Wordpress Plugin: Updates and Bug Fixes!

NKMImageField 0.6 WordPress Plugin: Updates and Bug Fixes!

I spent this evening working on my WordPress plugin, NKMImageField, fixing most of the bugs mentioned in the previous comment thread. The result is NKMImageField v0.6, which is now available for download from the WordPress plugins site.

If you aren’t familiar with the plugin, it duplicates the image management dialogue to permit you to attach images to a post as metadata using a simple graphical interface — instead of having to locate, copy, and paste the URL into a custom field.

The new version allows fields to be accessed properly outside the WordPress Loop as well as on archive and category pages. It fixes several bugs including broken template tags and some data loss bugs that were related to post revisions, autosaves, and scheduled / future posts. It’s been tested with WordPress 2.8.6 and will likely still work with earlier versions going back to 2.7.

I’d like to extend a big thank you to everyone who submitted bug reports and fixes for the plugin — I hope you’ll contact me so that I can give you credit (name and URL) in the documentation.

  1. COMMENT: by brice, December 27th, 2009

    hi i found this plugin very useful.
    i would like to use it to display an image beside the title of the pages in a page that contains links to a list of subpages.

    i use this code to display subpages:

    if ($children) { ?>

    what to do to get also the relative imagefield?

  2. COMMENT: by Noemi Millman, December 29th, 2009

    Brice – the code you tried to post doesn’t seem to have come through: could you please post it again?

  3. COMMENT: by SImone Bolognini, February 17th, 2010

    I have great problems with the quick edit feature.
    When i use this functionality all fields associated to the post disappear.
    Is it a known problem?

  4. COMMENT: by Nathan, March 23rd, 2010

    Perfect!! Thanks very much for this.

  5. COMMENT: by lee, April 29th, 2010

    how woudl I mod this so that it does write to the custom fileds table?
    That way I dont have to change my theme around to make it work with this plugin.
    many thanks

  6. COMMENT: by Noemi Millman, April 29th, 2010

    Lee, you could take a look at Arturo’s version (linked from the comments on this page) for ideas.

  7. COMMENT: by lee, April 30th, 2010

    thanks Noemi,
    But that link is dead as it’s not been accessed in ages, dount suppose you have a copy or any other suggestions?


  8. COMMENT: by Noemi Millman, April 30th, 2010

    Lee — I’m manically busy this week but will take a look when I get a chance.

  9. COMMENT: by Custom images « Astera Web, May 19th, 2010

    [...] imagine my joy to find nkmimagefield shame it doesn’t integrate with NextGen, but perhaps that will [...]

  10. COMMENT: by Billy Blay, August 27th, 2010

    Olá, acabei de traduzir o seu plugin para pt_BR, criei o arquivo .pot e .mo e gostaria e enviá-lo para você.

    [EDITOR'S NOTE] According to Google, this translates to: Hello, I just translate your plugin to pt_BR, I created the file. And pot. Mo and would like and send it to you.

  11. COMMENT: by Noemi Millman, August 27th, 2010

    Billy, thank you so much for translating the plugin to Portuguese! I’d love to bundle your translation. I’ll be in touch via email.

  12. COMMENT: by Cesare, October 27th, 2010

    It does not seem to work with custom post types. Does it?

  13. COMMENT: by Noemi Millman, October 27th, 2010

    I have no idea if it works with custom post types. Honestly, if it works at all with WP3.0, I’m mildly surprised.

  14. COMMENT: by Guillem, October 29th, 2010

    I found your plugin while questing through the www for a simple way to add media url to a custom field.

    Can you comment your code to make it more understandable?

  15. COMMENT: by Guillem, October 29th, 2010

    Ow! I forgot my manners! Thanks a lot for all your work!

  16. COMMENT: by Noemi Millman, October 30th, 2010

    Guillem — That’s probably a very good idea; especially because the code it modifies is so confusing. I’ll be sure to comment it better in the next release.

  17. COMMENT: by James, May 4th, 2011


    Your plugin (NKMImageField) is exactly what i need and seems to be working as expected (WP 3.1) except no matter what image size i use it always shows the large version.

    I need to be able to show the size i choose or it will blow my templates out.

    many thanks


  18. COMMENT: by Noemi Millman, May 4th, 2011

    James — yes, I’m sure they’ve adjusted the javascript APIs and such. I don’t have time at the moment to update the plugin, but if you do figure out how to fix it, any input would be welcomed.

  19. COMMENT: by Djo, June 15th, 2011


    Thanks for your extension is just the extesion which i needed.
    However i have a little bug with this, when i click in “Insert in article” to insert the photo in the customfield image my photo is inserted in the body of the article and not in the field. Have you an idea ?

    Thanks in advance


  20. COMMENT: by Noemi Millman, June 15th, 2011

    Djo, this is a known issue with the current version of WordPress. I’m very busy at the moment,but intend to fix it when I next have a chance.

  21. COMMENT: by Djo, June 16th, 2011

    Thanks Noemi, have you an idea of the location of the problem ? I have the time to fix it, but your knowledge it will help me.
    If i find the solution i will give you.



  22. COMMENT: by Noemi Millman, June 16th, 2011

    All I can tell you is that it’s almost certainly an issue with the javascript, not the PHP.

  23. COMMENT: by Djo, June 17th, 2011

    Hi !

    Have you an idea of the javascript file name ?
    Also please if normally when i click in “insert in the article” the image put in the image field or if it’s an other link who add the image in the image field ?


  24. COMMENT: by Noemi Millman, June 17th, 2011

    Sorry, not off the top of my head. Another possibility is a change in the class or ID of a target element.

    You might find Firebug a useful tool for investigating the problem.

Post a Comment

Your email is never published nor shared. Required fields are marked *

Comments may be held for moderation to prevent spam: your comment may not appear immediately.