Title: Problem with my gallery
Last modified: December 29, 2016

---

# Problem with my gallery

 *  Resolved [alexngc](https://wordpress.org/support/users/alexngc/)
 * (@alexngc)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-my-gallery/)
 * Hi !
 * I have a problem with a gallery displayed on my website
    I have already some 
   pictures, but when i upload a new image with the same category attribute, it 
   doesn’t work
 * Here’s my shortcode :
 * [mla_gallery tax_query=”array(array(‘taxonomy’=>’attachment_category’,’field’
   =>’slug’,’terms’=>’membres’))” columns=50 size=full meta_key=”slider_member_position”
   orderby=”meta_value” order=”ASC”]
 * And here, my images, those highlighted in red are those that do not display on
   my website, their “MLA Gallery in” is empty
 * ![](https://i0.wp.com/image.noelshack.com/fichiers/2016/52/1483005856-bugproblem.
   jpg)
 * Any solution ?

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

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-my-gallery/#post-8601278)
 * Thanks for your question and for posting the full source text of your shortcode;
   very helpful.
 * You wrote “**_upload a new image with the same category attribute_**” but you
   do not say how you assigned terms to the new items. It’s possible the term assignment
   isn’t doing what you expect.
 * On the Media/Assistant submenu table you can display terms assigned to each item.
   Pull down the “Screen Options” menu and check the box for “Att. Categories”. 
   Do the terms show up for the items you’ve highlighted?
 * If the terms are assigned correctly, then the cause is most likely your `meta_key
   ="slider_member_position" orderby="meta_value"` sort order. If you have not assigned
   a value for the `slider_member_position` custom field to the missing items they
   will not show up in the `[mla_gallery]` display. The WordPress database query
   for sorting on a custom field eliminates any items that do not have a value for
   the custom field. You can correct the problem by assigning a `slider_member_position`
   value to every item you want to display.
 * By the way, your shortcode could be simplified, although it will work fine as-
   is. You could use the “simple taxonomy query” instead of the more complex taxonomy
   query:
 *     ```
       [mla_gallery attachment_category=membres columns=50 size=full meta_key="slider_member_position" orderby="meta_value" order="ASC"]
       ```
   
 * You might also consider eliminating the `columns=50` parameter, which means “
   display 50 items in each row of the gallery”. Try `columns=1`; with `size=full`
   you are probably seeing just one item per row anyway.
 * I hope that gives you the information you need to get the gallery display you
   want. I am marking this topic resolved, but please update it if you have any 
   problems or further questions regarding the above suggestions. Thanks for your
   interest in the plugin.
 *  Thread Starter [alexngc](https://wordpress.org/support/users/alexngc/)
 * (@alexngc)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-my-gallery/#post-8602508)
 * Ok i see, but i don’t know where i can enter the “slider_member_position” value
   on my file..
    I don’t see any custom field with this name on the edit page of
   this picture
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-my-gallery/#post-8604131)
 * If you go to the Media/Edit Media submenu screen for a given item you should 
   see the “Custom Fields” meta box below the Description box. If not, pull down
   the Screen Options (upper-right corner) and check the box for Custom Fields.
 * The meta box will display all the custom fields that currently have a value. 
   You won’t see `slider_member_position` for the problem items. Below the list 
   is the “Add New Custom Field:” area. Pull down the “Select” dropdown control 
   and you should see `slider_member_position` in the list. Select it, enter a value
   and click “Add Custom Field”.
 * If you don’t see `slider_member_position` in the list (unlikely) you can click“
   Enter new” and add it manually.
 * You can also define an MLA Custom Field mapping rule to add the field to the 
   Quick Edit and Bulk Edit areas of the Media/Assistant submenu screen. See the
   Settings/Media Library Assistant Custom Fields tab for more information about
   that option.
 * Let me know if the above suggestions work for you.

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

The topic ‘Problem with my gallery’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-my-gallery/#post-8604131)
 * Status: resolved