Comments (6)
Thanks! :)
from simple-taxonomy-ordering.
Hi @uiliw,
You can order by name in the way your code shows (e.g. 'orderby' => 'name'
).
Is it not working? What's returned? I just tested a few different orderby's and they're all working on my side.
Let me know,
Kevin.
from simple-taxonomy-ordering.
hey @kpu23 !
Its always returning the plugin's order, no matter what i change, if i disable the plugin, it works how i want!
- First I enabled the two custom taxonomies i have, that is "Categoria" and "Linha",
- On taxonomies page i ordered how i wanted because on some pages they need to show like this order, but only in one place, in taxonomy.php's sidebar i placed that code above to order by name, and not by the plugins order.
I've tested differente orderby's also an nothing happens.. :/
from simple-taxonomy-ordering.
Hi @uiliw I believe the terms are filtered using the drag and drop order across the entire site due to the following filter:
https://github.com/yikesinc/yikes-inc-simple-taxonomy-ordering/blob/master/yikes-custom-taxonomy-order.php#L114-L116
You should be able to remove the filter where you need.
remove_filter( 'terms_clauses', array( $this, 'yikes_alter_tax_order' ), 10 );
from simple-taxonomy-ordering.
Old post but same problem here.
I need to call wp_dropdown_categories ordering by name but always returns the drag'n drop order.
I followed EvanHerman idea to disable the filter before calling wp_dropdown_categories but can access the yikes_alter_tax_order filter with $this.
The only solution i found is modifyng line 260 in yikes-custom-taxonomy-order.php to
$yikes_tax_order = new Yikes_Custom_Taxonomy_Order();
Now i can access the filter with global $yikes_tax_order;
Is it correct? There is another solution? otherwise, can you please modify your plugin for future versions?
Thanks in advance.
from simple-taxonomy-ordering.
@DobleD I've issued a PR against the plugin to update the main plugin file, which would allow removing the filter easier. See #20 for example code and to track progress.
from simple-taxonomy-ordering.
Related Issues (17)
- Bug report: term list shows multiple entries for same term if this term has multiple termmeta values HOT 3
- New query crashes get_terms HOT 14
- Not working from an AJAX call (with user taxonomy) HOT 5
- Re-order Child Terms when Dragging/Re-ordering Parent Terms HOT 1
- Readme — custom post types or custom taxonomies? HOT 1
- Undefined notice when object_type is not defined HOT 3
- Taxonomy ordering not working on AJAX based queries HOT 2
- Allow drag and drop to create hierarchical relationships
- Pagination HOT 1
- Error on line 68 after updating to 2.0.0 HOT 2
- Bring plugin files up to WPCS/PHPCS
- Trying to get property 'labels' of non-object
- Wrong filter name in documentation
- README.md not updated
- Taxonomy product_cat not showing?
- Freezes when dragging on large amount of terms
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-taxonomy-ordering.