Title: menu_order not working
Last modified: August 22, 2016

---

# menu_order not working

 *  Resolved [ographix](https://wordpress.org/support/users/ographix/)
 * (@ographix)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/)
 * Hi there,
 * I got your document gallery installed and trying to order them by menu_order.
   But when i go and change the order it doesn’t save. Any ideas?
 * Trying to order a bunch of newsletters.
 * here the url if that helps: [http://biggroup.ographix.com.au/resources/resources/](http://biggroup.ographix.com.au/resources/resources/)
 * [https://wordpress.org/plugins/document-gallery/](https://wordpress.org/plugins/document-gallery/)

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

 *  Plugin Author [demur](https://wordpress.org/support/users/demur/)
 * (@demur)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229386)
 * Hi **ographix**!
    While editing post You have to click on _Add Media_ button,
   just under the title field. In popped-up settings section select _Insert Media_
   menu, then make sure to get over to _Media Library_ tab, finally select option
   _Uploaded to this post_ from drop down menu. Now You can drap&drop Your files
   around and organize them in proper order. I wish You good luck!
 *  Thread Starter [ographix](https://wordpress.org/support/users/ographix/)
 * (@ographix)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229387)
 * Hi there,
 * Yes I can drag&drop them But it doesn’t save them in that order.
    A bit odd.
 * Eg When i close the window and refresh it the document will be back in the old
   place.
 * Any ideas?
 *  Plugin Author [demur](https://wordpress.org/support/users/demur/)
 * (@demur)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229388)
 * What shortcode do You use?
 *  Thread Starter [ographix](https://wordpress.org/support/users/ographix/)
 * (@ographix)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229389)
 * [dg descriptions=false order=DESC orderby=menu_order]
 *  Plugin Author [demur](https://wordpress.org/support/users/demur/)
 * (@demur)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229390)
 * Try just [dg] and drag&drop ordering.
 *  Plugin Author [demur](https://wordpress.org/support/users/demur/)
 * (@demur)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229391)
 * What version of WP in use?
 *  Thread Starter [ographix](https://wordpress.org/support/users/ographix/)
 * (@ographix)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229392)
 * Im using WordPress 3.9.2. Nope that doesn’t work.
 * Are my setting correct?
 * [http://ographix.com.au/screenshot.jpg](http://ographix.com.au/screenshot.jpg)
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229473)
 * Hi ographix,
 * I’ve read through this thread and based on what I’m seeing, my guess would be
   that one of the plugins you have installed is playing games with the ordering.
   If the Media Library is not retaining the order you set then whatever is preventing
   that is likely also the root of DG not giving you the order you want.
 * Would you mind doing a test for me? First, disable all of your plugins except
   DG. Then, go and modify the order of the attachments in the media library, close,
   then re-open and see whether their new order is retained. If it is, then DG should
   also work.
 * Assuming the above works, you’ll next need to re-enable the other plugins one-
   by-one, each time doing the same test until it stops working. Whichever plugin
   you most recently activated after it stops working will be the culprit.
 * It is also possible, though much less likely, that the theme you are using is
   doing something incorrectly so if the above does not work then the next step 
   would be to disable all plugins except DG and also switch your theme to Twenty
   Fourteen or Twenty Thirteen and repeat the same tests described above.
 * If all of that doesn’t result in you being able to order your Media Library then
   we’ll have to keep working on it.
 * -Dan
 *  Plugin Author [demur](https://wordpress.org/support/users/demur/)
 * (@demur)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229474)
 * Let’s try what Dan suggests
 *  Thread Starter [ographix](https://wordpress.org/support/users/ographix/)
 * (@ographix)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229477)
 * Hi there, In the end I thought I would try the theme first. So I disabled it 
   and guest what it worked :/
 * I Made the theme myself. Any ideas what would be interfering with it?
 * I got it working in the end by doing it by “name” and having to rename every 
   newsletter with the correct name. Annoying but it work 🙂
 * Would still be good to fix it.
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229480)
 * I’m glad we at least know what was happening to some degree now!
 * In terms of debugging your theme, are you per chance doing anything with [pre_get_posts actions](http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts)?
   That could be modifying what queries return.
 * The other thing I would suggest is that you enable all PHP logging to see if 
   some exception somewhere is preventing normal behavior. The simplest way to do
   this would be to include the following lines in the top of your wp-config file:
 *     ```
       error_reporting(E_ALL);
       ini_set( 'display_errors','1');
       ```
   
 * Hope that helps!
    -Dan
 *  Thread Starter [ographix](https://wordpress.org/support/users/ographix/)
 * (@ographix)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229482)
 * Ok, I have included that code in the WP-config. What is next?
 * Dont think Im using pre_get_posts actions.
 *  Plugin Author [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * (@danrossiter)
 * [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229496)
 * You just want to see if anything is being logged when doing the actions that 
   were breaking ordering.
 * It’s possible that some exception somewhere is breaking the sorting.
 * Good luck!
    -Dan

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

The topic ‘menu_order not working’ is closed to new replies.

 * ![](https://ps.w.org/document-gallery/assets/icon.svg?rev=983329)
 * [Document Gallery](https://wordpress.org/plugins/document-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/document-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/document-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/document-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-gallery/reviews/)

## Tags

 * [order](https://wordpress.org/support/topic-tag/order/)

 * 13 replies
 * 3 participants
 * Last reply from: [Dan Rossiter](https://wordpress.org/support/users/danrossiter/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/menu_order-not-working-1/#post-5229496)
 * Status: resolved