Uncategorized wordpress как удалить
Перейти к содержимому

Uncategorized wordpress как удалить

WooCommerce: скрыть или удалить Uncategorized?

Категория «Uncategorized» — это категория по умолчанию. Она присваивается товарам, для которых не указали категорию. И это приавльно. Потому что если вы по какой-то причине не указали категорию для товара — забыли или пока не придумали, то вы точно знаете в какой категории его искать.

Я рекомендую не удалять и не переименовывать uncategorized. Пусть выполняет свою функцию — собирать неопределившихся.

Рекомендую эту категорию просто скрыть. Например, следующий код — скрывает uncategorized из виджета категорий в сайдбаре:

Как убрать uncategorized в WooCommerce

C недавними обновлениями в WooСommerce появилась неудаляемая категория Uncategorized:

uncategorized

Однако разработчики плагина предусмотрели возможность её удалить, для этого нужно присвоить другой категории статус категории по умолчанию. После этого можно удалить категорию Uncategorized:

uncategorized

uncategorized-

Вам помогла эта статья? Оцените!

Комментариев: 3

Большая благодарность, я уж было сносить все собирался

Большой респект автору, проблема решена, но чтобы оставить комментарий с капчей дольше пришлось повозиться, выбирая знаки на картинке

How to Delete ‘Uncategorized’ in WordPress

If you’ve been using WordPress long enough, then you probably know that despite it’s extensive capabilities, it can often be quite difficult and annoying to modify the smallest things if you don’t know where to look.

One of those ‘things’ is eliminating and replacing the awful ‘uncategorized’ category. When you first launch your WordPress site, everything you post will automatically be under ‘uncategorized’ until you change the default.

How to Remove Uncategorized from WordPress

(Meaning, your categories and posts may look something like this.)

Here are a few steps to get rid of that pest and make nice, pretty small trail of categories and sub-categories that lead to the current web page and make it easier for the user to know their current location.

  1. First things first, you must create a new category (I typically create an ‘ All ‘ category.) Without another category, uncategorized cannot be deleted.
  2. To create a new category, go to posts -> categories -> add name -> add slug (usually just the name) -> no parent -> add new category.
  3. After you have created your new category, go to settings -> writing.

Adding new categories

In writing, you will notice that ‘uncategorized’ is the default post category and is automatically selected as the category that all posts are written to. To change this, click on ‘uncategorized’ and change it to your new category. (In this case, my category is ‘All’.

Now that uncategorized is no longer the default category, it’s time to get rid of it completely. Go to posts -> categories .

DELETE Uncategorized!

Click delete. (I know you were waiting for those words.)

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *