Title: Custom Post Order Bug
Last modified: August 21, 2016

---

# Custom Post Order Bug

 *  Resolved [rhodesyman](https://wordpress.org/support/users/rhodesyman/)
 * (@rhodesyman)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-post-order-bug/)
 * Hi,
 * I’ve found a bug which stops custom post types ordering by anything else except
   date. When selecting any other order options in the menu admin panel, it doesn’t
   change the wordpress query’s orderby attribute. After some digging I found the
   problem in the jc-submenu/walkers/SubmenuWalker.php file at line 425 and line
   489.
 * They read:
    ‘order_by’ => $orderby
 * but should read:
    ‘orderby’ => $orderby
 * Just wanted to share this in case it helps anyone else!
 * Cheers.
 * [http://wordpress.org/plugins/jc-submenu/](http://wordpress.org/plugins/jc-submenu/)

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

 *  Plugin Author [jcollings](https://wordpress.org/support/users/jcollings/)
 * (@jcollings)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/custom-post-order-bug/#post-4469911)
 * Cheers thanks for letting me know, i have now changed this in version 0.5.2 of
   the plugin.
 * James
 *  Plugin Author [jcollings](https://wordpress.org/support/users/jcollings/)
 * (@jcollings)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/custom-post-order-bug/#post-4469947)
 * Topic Closed

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

The topic ‘Custom Post Order Bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jc-submenu_69a699.svg)
 * [JC Submenu](https://wordpress.org/plugins/jc-submenu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jc-submenu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jc-submenu/)
 * [Active Topics](https://wordpress.org/support/plugin/jc-submenu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jc-submenu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jc-submenu/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [jcollings](https://wordpress.org/support/users/jcollings/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/custom-post-order-bug/#post-4469947)
 * Status: resolved