Title: BFI-WP's Replies | WordPress.org

---

# BFI-WP

  [  ](https://wordpress.org/support/users/bfi-wp/)

 *   [Profile](https://wordpress.org/support/users/bfi-wp/)
 *   [Topics Started](https://wordpress.org/support/users/bfi-wp/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bfi-wp/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bfi-wp/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bfi-wp/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bfi-wp/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bfi-wp/favorites/)

 Search replies:

## Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/page/2/#post-6117596)
 * **2. custom:File Size=**
    – I installed the latest Development version and enabled
   the Delete NULL values option for both my custom fields. With that option enabled
   the records appear as they should in the search results even after being updated
   using the Quick Edit.
 * Thanks for this fix. All issues are resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/page/2/#post-6117593)
 * **1. custom:File Size**
    – I removed “Source” out of the third occurrence and
   all of the tests worked great!
 * **2. custom:File Size=**
    – This search works as expected. The only related issues
   is the one I mentioned in my previous post regarding the updating of all custom
   fields in the Quick Edit. Here is a recap again from my previous post:
 * “I uploaded a new image and from the table went to Quick Edit. I entered in a
   value for External ID but nothing for Source and then updated. This new record
   will not show in the search results. If you go to edit the record, there is a
   Source field that is blank. So it looks that the Quick Edit adds all additional
   custom fields but with blank values if nothing is entered”
 * I also tested the custom: search prefix in the Media Manager Modal (popup) Window
   and it works great
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/page/2/#post-6117590)
 * Here are my responses to your questions
 * **1. custom:File Size**
    – I changed all three places in the source code that
   had “File Size” to “Source” – “custom:*” brings up all records that have any 
   value in a custom field – “custom:Source=istock” brings back no results – “custom:*
   istock*” brings back the expected result
 * **2. custom:File Size=**
    – I don’t believe I have a IPTC/EXIF mapping rule setup
   for Source. In the custom fields mapping, the Data Source is set to None – However,
   what I did notice when looking further is that the records that only have a value
   for External ID and not Source in the listing do have a Source field listed when
   you go to edit although it is blank. If I remove that field then the record appears
   in the results of this search, as it should. I uploaded a new image and from 
   the table went to Quick Edit. I entered in a value for External ID but nothing
   for Source and then updated. This new record will not show in the search results.
   If you go to edit the record, there is a Source field that is blank. So it looks
   that the Quick Edit adds all additional custom fields but with blank values if
   nothing is entered
 * I also filled out the form on the link you sent in order to get an address to
   send an error log for issue #1
 * Thank you again for your assistance
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/#post-6117587)
 * I installed the latest version (1.02) and also updated to the latest Development
   Version
 * Here are my results
 * 1. custom:File Size
    – Thanks for your explanation as I wasn’t clear on how this
   worked previously. I did replace “File Size” in the source code with one of my
   custom fields “Source” for testing. “istock” is a value for one record in the“
   Source” field but when I entered “custom:istock” I did not get any results
 * 2. custom:File Size=
    -An example will best explain this: * In addition to the“
   Source” field mentioned above, I also have a custom field called “External ID”.
   If I enter in “custom:Source=”, the results will not show any of the records 
   that have a value in “Source” which is expected. However, the results also will
   not show any of the records where there is a value in “External ID” but no value
   in “Source”. Perhaps when a record is edited and updated the NULL value in “Source”
   becomes “” ?
 * 3. custom:[any valid wildcard]
    – Works great now!
 * If you need error log just let me know how to access that and I can send it to
   you
 * Thanks you so much again for your work. I’m fell bad that this continues to have
   issues
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/#post-6117585)
 * Further update
 * 1. I had not installed the latest version of the “MLA Custom Field Search Example”
   custom plugin. Previously I put this in the mu-plugins folder and so I replaced
   the previous file there with the new one
 * 2. I did not modify this yet but in all my testing I am always referencing a 
   specific custom field after “custom:”
 * After uploading the latest version of the “MLA Custom Field Search Example” custom
   plugin there is definitely more success although still a few issues. I have put
   the remaining issues in bold below. Again, in my testing I am using the names
   of my custom fields but have put File Size below to keep consistency
 * **custom:File Size still returns no results**
 * custom:File Size=* now returns the expected results
 * **custom:File Size= returns all records including those without a Null value**
 * custom:Color=red returns the expected results
 * custom:Color=red,green,blue now returns the expected results
 * **custom:[any valid wildcard] still returns no results**
 * I can definitely install the custom debug plugin and send the results or get 
   on a Skype session with you.
 * Thanks so much for all of your work and willingness to help
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/#post-6117582)
 * Thanks for working on this. I installed the latest developer version, however,
   I did not see the results that you described. Here are my findings. I, obviously,
   did not use the example fields below in my testing; I just included them to match
   up with your examples
 * custom:File Size returns no results
 * custom:File Size=* returns no results
 * custom:File Size= returns all of the records **without** a Null value and always
   one additional record that does not match
 * custom:Color=red returns the expected results
 * custom:Color=red,green,blue returns no results
 * custom:[any valid wildcard] returns no results
 * If you need any further information, please let me know. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/searching-on-custom-fields/#post-6117552)
 * If you would like any assistance with your investigation, we have a developer
   in our organization that has done work with plugins and would be happy to help
   out. Just let me know.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] How to select categories when uploading?](https://wordpress.org/support/topic/how-to-select-categories-when-uploading/)
 *  [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/how-to-select-categories-when-uploading/#post-5936489)
 * Thanks for pointing me to that earlier topic. I noticed that I had not clicked
   the Buik Edit checkbox for my custom fields and now they appear under Media >
   > Add New. Great!
 * One last question on this. I went to add Media to a New Post and noticed when
   viewing the attachment details for a selected image that the Att. Categories 
   and Att. Tags could be defined there. That is fantastic. Is there any setting
   to have the custom fields also appear there? It would make our editor’s job much
   easier if they could define those fields when adding them to a post.
 * Again, thank you so much for all of your help and assistance with your great 
   plugin
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] How to select categories when uploading?](https://wordpress.org/support/topic/how-to-select-categories-when-uploading/)
 *  [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [11 years ago](https://wordpress.org/support/topic/how-to-select-categories-when-uploading/#post-5936486)
 * Is there a way to show custom fields so they can be entered when uploading an
   image as well.
 * It is great that the categories and tags are there!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [11 years ago](https://wordpress.org/support/topic/searching-on-custom-fields/#post-6117542)
 * I have successfully installed and tried the Development Version with the new 
   plugin.
 * It is working quite well when doing exact searches on the custom field. I tried
   to put in a partial match of a value that is in the custom field and nothing 
   came up, however.
 * Does the mla-custom-field-search-example allow for partial matches and, if so,
   is there a character I need to add to enable that?
 * Thanks for your responsiveness and great work (again) on this plugin
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Searching on custom fields](https://wordpress.org/support/topic/searching-on-custom-fields/)
 *  Thread Starter [BFI-WP](https://wordpress.org/support/users/bfi-wp/)
 * (@bfi-wp)
 * [11 years ago](https://wordpress.org/support/topic/searching-on-custom-fields/#post-6117491)
 * Thanks for getting back to me.
 * 1. Actually, I am looking to have this function in the “back end” admin screen
 * 2. It would work for us to add custom fields to the existing keyword search in
   the back end
 * A solution that requires some PHP coding is definitely manageable
 * Thanks so much

Viewing 11 replies - 1 through 11 (of 11 total)