freemarket

Topic: how to Arrange Categories to alphabetical order

Hallo,

If you know how to organize categories in ascending or descending order please help.
Also remember to take it easy for newbie’s like me. Thanking you, www.piecejob.co.za

putypuruty

Re: how to Arrange Categories to alphabetical order

Hi!

There are 2 solutions:

1. Don't know if you have noticed, but you can reorder the categories via drag&drop from the admin section. Just click the blue bar (above the category's name) and drag it wherever you want in order to arrange it.

2. Open /_includes/functions.php and find function get_categories() (around line 18).

A few lines below, replace `category_order` with `name`.

By default, they will be sorted in ascending order because there is the ASC keyword. If, for whatever reason, you want to display them in descending order, replace the word ASC with DESC.

Good luck!

Last edited by putypuruty (2009-03-12 18:10:55)

gegan249

Re: how to Arrange Categories to alphabetical order

putypuruty wrote:

Hi!

There are 2 solutions:

1. Don't know if you have noticed, but you can reorder the categories via drag&drop from the admin section. Just click the blue bar (above the category's name) and drag it wherever you want in order to arrange it.

OMG Thank You.  I couldn't find that feature.. I was deleting and re-adding them in a specific order then i was gonna hack the categories table sort order...i knew he had to have put that in but thought perhaps it was still in development.

careerspk.com

Re: how to Arrange Categories to alphabetical order

This is something i was looking from many days. At last found it here.