Category order

  1. saurav.rox

    WordPress should provide a functionality to order the category. Only Ascending/Descending is not enough sometimes. We should be able to order them on our own ways.

    Posted: 3 years ago #
  2. Order them.... how? And where?

    The problem is that it's just a list of categories, so it's expected to be in 'an' order. And since Computers are simple, we default to alphabetical. Are you thinking about this on the front end of the site or the back end?

    Posted: 3 years ago #
  3. saurav.rox

    I was hoping for the back-end. The functionality i was talking about is that we should be able to order them in our desired manner at the back-end & those categories should get listed in the similar order at the front-end as we have kept them at the back-end.

    Posted: 3 years ago #
  4. How are you sorting them on the front end? I have a feeling this can be done with plugins, but the meta boxes are a bit outside my wheel house.

    Posted: 3 years ago #
  5. saurav.rox

    Using plugins for this kind of functionality does not sound good. There must be a default functionality for this like there is a functionality for ordering pages at the back-end. Sorting can be done either Ascending or Descending while displaying at the front-end which is not enough sometimes as i mentioned.

    Posted: 3 years ago #
  6. Why does it not 'sound good'?

    While I understand your point of view, keep in mind that we try to code WordPress for the majority of users. Most people are perfectly content with alphabetical becuase it's easy to look for something. It's an order we're all familiar with :) Making it (seemingly) random to a new user would be very complicated to explain when you add more people to your site.

    This is something that fewer people would use. That's not a judgement call on it's merit. I suspect that the people who would use it would love it. I just don't see this being something that 80% of people who use WordPress would need, based on how few people have brought this up before.

    The reason it's easy to do alphabetical is because that's how PHP works :) You can also 'easily' sort by the order a category was added to your site. But a 'user specific order' would require changes to the database tables or the creation of a new DB option in wp_options to track that change which will result in your site running slower depending on how many categories you have.

    It's not super scalable at size.

    Posted: 3 years ago #
  7. saurav.rox

    Let me clear, i'm not asking that wordpress should make category order a random one. i'm just asking if a functionality like "page order" can be provided with category too. Those who need it can use it. In cae that filed is not used then category will appear alphabetically at the front-end. The order maintained at the back-end will be reflected at the front-end if 'order' field is filled. Those who don't feel like using it will get alphabetical category order at the front end.

    Posted: 3 years ago #
  8. Right. For pages, that's actually a special field in the table called menu_order that establishes the post display order.

    We would have to add in another column to the taxonomy table for that to work, which is something we do try to avoid.

    That said, that's exactly what these plugins do:


    So again, why do the plugins not sound good? If it's because you worry about them not being supported, or breaking when core updates, yes, it's a possibility, but at the same time when it's such an edge case, allowing this to be a plugin lets it grow and adapt and get kinks out while still being able to be updated.

    I think it's one of those things that would fall to the numbers. Not enough people use it yet to make it worth the effort of being in core WP. Yet.

    Posted: 3 years ago #
  9. I can understand saurav.rox┬┤s needs. But i think also, that this a very special request. But who knows, maybe more people support this proposal.

    On some of my sites I am using the text-widget and sort the categories by myself by writing a html custom menu.

    Thats it.

    Posted: 3 years ago #
  10. saurav.rox

    Well, i don't think its a big deal giving an extra order field for category like on the Page. Coding in custom ways requires extra effort & time. This is simple request which should be fulfilled by wordpress itself & not depending on the extra plugins. This requirement can be easily fulfilled if an extra field is added to the categories. For these sort of task i don't think using plugin is a good way as we have to take care of so many things too.

    Posted: 3 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    0 Votes
  • Status

    This idea is under consideration