Dave Jesch
Forum Replies Created
-
Forum: Plugins
In reply to: [Database Collation Fix] BUG – Default value i tablesThank you for reporting this issue.
I’ve pushed an update that addresses this problem. If you would like to try this again and let us know the results, I would appreciate your feedback.
Forum: Plugins
In reply to: [Database Collation Fix] Improve I18N Issues (Based on 1.2.8)Implemented.
Forum: Plugins
In reply to: [WPSiteSync for Content] Red x on a password when I try to connectHi @greggsand,
It is possible the configuration is incorrect. Here’s our starter guide https://wpsitesync.com/knowledgebase/use-wpsitesync-content/
If you are still having problems, we do offer FREE support here on Wednesdays 6pm to 8pm PST. Otherwise, feel free to submit a ticket at https://serverpress.com/contact/ for Priority support if you are currently a Premium Member. We are happy to guide you through any configuration issues.
Forum: Hacks
In reply to: Problem with get_categories()Looks like you nailed it.
Turns out there’s a plugin that is installed that I didn’t know of: Taxonomy Terms Order. This has a filter that is forcing the ordering to ‘t.term_order’ for any taxonomy query.
I’m helping someone else resolve this issue. I’ll check with him and see if this plugin can be removed. If not, the filter I have that is resetting the orderby seems to do the trick for the query in question.
Thanks for solving the mystery!
Forum: Hacks
In reply to: Problem with get_categories()Hi Bcworkz,
Thanks for your input. It’s possible there is another filter causing interference, I’ll look into that and report back.
Forum: Hacks
In reply to: Problem with get_categories()Hi Amras, thanks for taking a look.
Yup, I did read the codex. In fact, it says that the default value for parent is 0.
I tried removing the parent from the args as you suggested and it still isn’t working. The code now looks like this:
$args = array( 'orderby' => 'name', 'order' => 'ASC'); $categories = get_categories( $args );
I should clarify: the get_categories() call works and returns the correct categories. It’s just not returning the data in the order that I’m requesting. Even when specifying ‘orderby’ => ‘name’ the categories are returned in term_order rather than by name. Only using the filter and forcing the ordering to ‘t.name’ causes it to sort in the desired order.