Title: orderby doesn&#8217;t work
Last modified: October 21, 2016

---

# orderby doesn’t work

 *  Resolved [BenM](https://wordpress.org/support/users/alysko/)
 * (@alysko)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/orderby-doesnt-work/)
 * Hi,
 * Your plugin works fine, thanks, but if I want to rearrange in a specific order,
   it doesn’t work.
 * For example, I use Search&Filter plugin in which I specify an orderby name, but
   terms stay displayed in custom order.
 * Thanks.
    edit: to do it works, I exclude taxo on the page where Search&Filter
   is.

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

 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/orderby-doesnt-work/#post-8353235)
 * Hi, I am not seeing the same thing 🙂
    I use this shortcode: `[searchandfilter
   fields="search,category,post_tag"]` it will be sorted on name (which seems to
   be the default in that plugin. If I use this shortcode: `[searchandfilter fields
   ="search,category,post_tag" order_by="term_order"]` It will omit the order_by
   and still use name.
 * Which shortcode do you use? You really see it set as you set it on the tax_order
   plugin?
 *  Thread Starter [BenM](https://wordpress.org/support/users/alysko/)
 * (@alysko)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/orderby-doesnt-work/#post-8353332)
 * Hi, here is my shortcode
 *     ```
       [searchandfilter fields="arborescence,matieres"
       								types="select,select"
       								order_by="name,name"
       								order_dir="ASC,ASC"
       								hide_empty="0,0"
       								post_types="documentation"
       ```
   
 * As you can see, this is a CPT. With this shortcode, “arborescence” and “matieres”
   keep their custom order.
 *  Plugin Author [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * (@mpol)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/orderby-doesnt-work/#post-8353594)
 * Yes, I see the same. But there is no real way to disable that.
 * I did some digging, and the plugin uses wp_dropdown_categories which uses get_terms.
   
   My plugin filters the output of get_terms in the function customtaxorder_wp_get_object_terms_order_filter.
   There it just uses the list of terms and the setting you set in this plugin for
   that taxonomy. It doesn’t let you set things individually for each call.
 * If you don’t want to filter the result of get_terms, than you can run:
    `remove_filter('
   get_terms', 'customtaxorder_wp_get_object_terms_order_filter', 10, 3 );`

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

The topic ‘orderby doesn’t work’ is closed to new replies.

 * ![](https://ps.w.org/custom-taxonomy-order-ne/assets/icon-256x256.png?rev=1284953)
 * [Custom Taxonomy Order](https://wordpress.org/plugins/custom-taxonomy-order-ne/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-taxonomy-order-ne/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-taxonomy-order-ne/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-taxonomy-order-ne/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-taxonomy-order-ne/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-taxonomy-order-ne/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Marcel Pol](https://wordpress.org/support/users/mpol/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/orderby-doesnt-work/#post-8353594)
 * Status: resolved