Change Category order in WordPress

Asked By 110 points N/A Posted on -

Anyone tell me how can I change the category order in WordPress.

I create some categories and after that I create some posts, but those posts don't appear according to my wish I want change order please anyone tell me its solution.

Answered By 0 points N/A #83795

Change Category order in WordPress


First you need to find where the list of categories is being generated.

Since it is in the header part of the document, visit the header.php in the WordPress root file.

It will look something like this line:

<? PHP wp_list_categories (‘title_li=&exclude=’ . $ex_aside) ?>

This is the line that executes the default WordPress category order.

There is a little plugin called My Category Order.

You can find it here. This plugin allows you to arrange your categories in accordance to your choice.

Then, you can make slight modifications to your header.php code, and you are done.

After installing the WordPress Category Order plugin, simply arrange the categories in the required order by drag and drop in the WordPress admin console.

Category Order

Then change the code in the header.php to this:

<? PHP wp_list_categories (‘title_li=&orderby=order&exclude=’ . $ex_aside) ?>

If you observe the main change for the category is “orderby=order” which configures the WordPress to display the categories in the order in which you have displayed them, from the My Category Order plugin.

Login/Register to Answer

Related Questions