Categories lose hierarchy order once assigned to post

You could try out Scribu’s plugin, i believe this addresses the very problem you’re describing which has been reported on Trac a handful of times(but closed/deleted). Category Checklist Tree by scribu http://wordpress.org/extend/plugins/category-checklist-tree/ Related tickets: http://core.trac.wordpress.org/ticket/14723 http://core.trac.wordpress.org/ticket/10982 Hope that helps.. 🙂

How do I remove the tags from wp_list_categories?

The new separator attribute of wp_list_categories() I think you are looking for the new separator attribute, that will be introduced here in WordPress 4.4 that’s just around the corner. I located the trac ticket here #9025. Then you can use: $args = [ ‘style’ => ‘none’, ‘separator’ => ”, // <– Removes the default one … Read more

Script to duplicate categories as tags

As I said, we would rather use native functions here, which is safer and already does all the hard work for you. We need to be very careful here as this is a very expensive operation to run. Not doing this correctly can crash your site due to timing out Your worksflow is also wrong … Read more

How to disable access to category pages

You can add something like this in your category.php. if ( ! is_admin() ) { wp_redirect( home_url() ); exit; } This will redirect viewers to website homepage but category pages will be active and accessable to admins only.

Display Only One Category

Here’s snippet to display first category from post. $category = get_the_category(); if ( $category[0] ) { echo ‘<h2><a href=”‘ . get_category_link( $category[0]->term_id ) . ‘”>’ . $category[0]->cat_name . ‘</a></h2>’; } Original idea of the code is from WordPress Codex