About this topic

  • Posted by sprutniks 2 months ago. There are 2 posts. The latest reply is from sprutniks.
  1. After some testing I've noticed that the "Sort Categories" option in the widget settings actually doesn't affect the frontend output if the order is set to "Ascending". The same applies even if using the "My Category Order" plugin.

    orderby: ID + order: ascending => sort by name/slug (alphabetical ASC);
    orderby: ID + order: descending => sort by ID (DESC);
    orderby: term order + order: ascending => sort by name/slug (alphabetical ASC);
    orderby: term order + order: descending => sort by term order (DESC);

    can you please confirm the bug and maybe fix it or suggest a workaround?

  2. Well, I had to temporarily insert a wp_cache_flush() in get_terms() before wp_cache_get() (file taxonomy.php, line 1212) to make it finally work successfully.
    But without flushing the cache it will sort wrongly, again.

    So now I'm using wp_cache_delete('get_terms', 'terms') in collapscatlist.php line 499 before get_terms(), although I guess this is not a great deal

RSS feed for this topic

Have you read the FAQ?
Have you tried the latest development version (at the bottom)?

Reply

You must log in to post.