nanodesigns / nanosupport

Create a fully featured Support Center in your WordPress setup without any third party dependency, completely FREE. Get a built-in Knowledgebase too. The plugin is available on WordPress.org repository:
https://wordpress.org/plugins/nanosupport/
GNU General Public License v2.0
50 stars 13 forks source link

Set custom order to the featured Knowledgebase categories #51

Closed mayeenulislam closed 6 years ago

mayeenulislam commented 6 years ago

User @fang-yu asked for a feature in #30 that:

it will be better if I can set the order of the feature category.

mayeenulislam commented 6 years ago

Solution

It can be done with any third party solutions like: https://wordpress.org/plugins/taxonomy-terms-order/

It works for general categories, but not for the Featured Categories.

Solution for Featured Categories

Under the hood

Featured categories, when choose and saved, saved as an array in wp_options table. Hence changing on the order doesn't take any effect as we queried them, not their orders.

Solution

After sorting the categories using any third party plugin, let's follow these simple steps:

Step 1: Empty first

Empty the featured categories selection first, save changes

featured-categories-empty-first

Step 2: Choose again

Choose the categories again for featured categories, save changes featured-categories-choose-again png

It will work, inshALLAH.