Как оформить шаблон для категорий и меток?

Could you provide more context or details about the records of type "cases" that you are referring to? It would be helpful to know what specific information or queries you are interested in regarding these records. Thank you.
  • 24 декабря 2023 г. 15:17
Ответы на вопрос 2
The template for categories and tags can be designed based on the specific needs and requirements of your website or platform. However, here are some general guidelines on how to structure the template for categories and tags:

1. Category Template:
- Start by defining the category name and a brief description.
- Include a list of subcategories if applicable.
- Provide links to related articles or content within the category.
- Display any relevant images or media associated with the category.
- Include a search or filter functionality to allow users to find specific content within the category.
- Add a section for featured articles or popular content within the category.
- Include a section for recent news or updates related to the category.

2. Tag Template:
- Begin with the tag name and a short description if necessary.
- Display a list of articles or content that are associated with the tag.
- Include options to filter or sort the content by date, popularity, or relevance.
- Provide links to other related tags or categories.
- Add a "similar tags" section to suggest similar topics or tags to the users.
- Include a tag cloud or list of popular tags to facilitate navigation.

Remember to consider the overall design and user experience when creating the templates. The templates should be visually appealing, easy to navigate, and allow users to quickly find the information they are looking for.

If you provide more specific details or requirements regarding the "cases" records, I can provide more tailored guidance on designing the template for them.
Попробуйте сначала регистрировать таксономию, потом тип записи 
И при регистрации типа записи укажите
'hierarchical' => true,

Важно: после создания нового типа записи. Обязательно нужно зайти на страницу Настройки → Постоянные ссылки. Нужно это для того, чтобы правила ЧПУ были пересозданы и туда были добавлены правила нового типа записи.

register_post_type()
register_taxonomy()
Похожие вопросы