Category Alternative Title
A lightweight WordPress (MU) plugin that allows administrators to set an alternative title for categories. If populated, this title automatically replaces the default archive title on category pages.
by Dmitry Kuzmenko · github.com/plsoo/wp-category-alt-title · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/plsoo/wp-category-alt-title/archive/refs/heads/main.zipReadme
WP Category Alternative Title
English
A lightweight WordPress (MU) plugin that allows administrators to set an alternative title for categories. If populated, this title automatically replaces the default archive title on category pages.
Features
- Lightweight & Clean: Minimal overhead, relies strictly on native WordPress Term Meta API.
- Seamless Integration: Adds a custom field directly to Category creation and editing screens in
wp-admin. - Automated Replacement: Dynamically overrides
get_the_archive_titlewithout requiring theme template modifications. - Secure & Standardized: Complies with WordPress Coding Standards (sanitization, escaping, unslashing).
Installation
As a Must-Use Plugin (Recommended)
- Download
wp-category-alt-title.php. - Upload the file to your
/wp-content/mu-plugins/directory.
As a Standard Plugin
- Clone this repository into
/wp-content/plugins/wp-category-alt-title/. - Activate the plugin via the Plugins menu in WordPress.
Русский
Легковесный WordPress (MU) плагин, добавляющий поле «Альтернативный заголовок» для категорий. При заполнении поля заголовок автоматически подменяется на страницах архивов категорий.
Особенности
- Минималистичность: Работает через нативный WordPress Term Meta API без сторонних зависимостей.
- Удобный интерфейс: Интегрирует поле прямо в формы создания и редактирования категорий.
- Автоматическая подмена: Перехватывает фильтр
get_the_archive_title— править шаблоны темы не требуется. - Безопасность: Написан строго по стандартам WPCS (санитизация данных, экранирование).
Установка
Как Must-Use плагин (Рекомендуется)
- Скачайте файл
wp-category-alt-title.php. - Поместите его в папку
/wp-content/mu-plugins/.
Как обычный плагин
- Поместите папку с плагином в
/wp-content/plugins/wp-category-alt-title/. - Активируйте плагин в панели Плагины.
Author
Dmitry Kuzmenko
License
GPL-2.0-or-later