Single Category Permalink
Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest category in the hierarchy.
Considere uma alternativa
Single Category Permalink shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 5/5 and was last updated 5 years ago, and scores 39/100 on our health check.
- Base de usuários pequenas (mais de 400 instalações ativas)
- Nenhuma atualização em 5 anos
- Testado apenas até WordPress 5.8 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Single Category Permalink stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| categoria | >100 |
| coffee2code | #34 |
| link | >100 |
| permalink | >100 |
| structure | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★ ★★★★★ 5 de 5 comentários
About Single Category Permalink
From the official readme · v2.5.2Descrição
Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest category in the hierarchy.
By default, WordPress replaces the %category% permalink tag in a custom permalink structure with the entire hierarchy of categories for the post’s first matching category. For example, assuming your site has a hierarchical category structure like so:
Applications
|_ Desktop
|_ Web
|_ WordPress
By default, if you have a permalink structure defined as %category%/%year%/%monthnum%/%day%/%postname%, your post titled “Best Plugins” assigned to the “WordPress” category would have a permalink of:
https://www.example.com/applications/web/wordpress/2008/01/15/best-plugins
If you activate the Single Category Permalink plugin, this would be the permalink generated for the post (and recognized by the blog):
https://www.example.com/wordpress/2008/01/15/best-plugins
In order for a category to be used as part of a post’s permalink structure, %category% must be explicitly defined in the Settings -> Permalinks admin page as part of a custom structure, i.e. /%category%/%postname%.
For category links, %category% is implied to follow the value set as the “Category base” (or the default category base if none is specified). So if your category base is ‘category’, the above example would list posts in the ‘WordPress’ category on this category listing page:
https://www.example.com/category/applications/web/wordpress/
With this plugin activated, that link would become:
https://www.example.com/category/wordpress/
NOTE: The fully hierarchical category and post permalinks will continue to work. The plugin issues a 302 redirect to browsers and search engines pointing them to the shorter URL.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Hooks
The plugin exposes one filter for hooking. Code using this filter should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain). Less ideally, you could put them in your active theme’s functions.php file.
c2c_single_category_redirect_status (filter)
The ‘c2c_single_category_redirect_status’ hook allows you to specify an HTTP status code used for the redirect. By default this is 302.
Arguments:
- $status (integer) : The default HTTP status code
Exemplo:
/**
* Change the redirection HTTP status to a 302.
*
* @param int $code The HTTP status code. By default 301.
* @return int
*/
function scp_change_redirect_status( $code ) {
return 302;
}
add_filter( 'c2c_single_category_redirect_status', 'scp_change_redirect_status' );
Instalação
- Install via the built-in WordPress plugin installer. Or download and unzip
single-category-permalinks.zipinside the plugins directory for your site (typicallywp-content/plugins/) - Activate the plugin through the ‘Plugins’ admin menu in WordPress
- Use
%category%as a permalink tag in theSettings->Permalinksadmin options page when defining a custom permalink structure
Log de Changes
Trivial update: noted compatibility through WP 5.8+ and minor reorganization and tweaks to unit tests
2.5.2 (2021-09-28)
- Change: Note compatibility through WP 5.8+
- Unit tests:
- Change: Restructure unit test directories
- Change: Move
phpunit/bin/intotests/ - Change: Move
phpunit/intotests/
- Change: Move
- Change: Remove ‘test-‘ prefix from unit test file
- Change: In bootstrap, store path to plugin file constant
- Change: In bootstrap, add backcompat for PHPUnit pre-v6.0
- Change: Restructure unit test directories
2.5.1 (2021-04-30)
- Change: Note compatibility through WP 5.7+
- Change: Update copyright date (2021)
2.5 (2020-09-23)
- Fix: Default the
$taxonomyargument ofcategory_link()to ‘category’ to avoid a PHP warning/error - Fix: Handle the possibility that
get_category()could returnnullfor an invalid category ID - New: Add a TODO item about removing deprecated functions (which is not something I want to do just yet, hence the TODO)
- Change: Update docs for return value of
category_link()to reflect thatWP_Errorornullare also possible values - Change: Note compatibility through WP 5.5+
- Change: Restructure unit test file structure
- New: Create new subdirectory
phpunit/to house all files related to unit testing - Change: Move
bin/tophpunit/bin/ - Change: Move
tests/bootstrap.phptophpunit/ - Change: Move
tests/tophpunit/tests/ - Change: Rename
phpunit.xmltophpunit.xml.distper best practices
- New: Create new subdirectory
- Unit tests:
- New: Add tests for
category_link(),post_link() - New: Add
unset_permalink_structures()to unset configured permalink structures
- New: Add tests for
Full changelog is available in CHANGELOG.md.
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Single Category Permalink alternatives
All category plugins →FAQ
Single Category Permalink: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is Single Category Permalink free?
Yes. Single Category Permalink is free to download and use from the official WordPress.org plugin directory.
Is Single Category Permalink safe to use in 2026?
Single Category Permalink shows warning signs in 2026 — compare the alternatives below before installing. It runs on 400+ sites, is rated 5/5 and was last updated 5 years ago, and scores 39/100 on our health check.
How many websites use Single Category Permalink?
Single Category Permalink is active on 400+ WordPress websites and has been downloaded 28,701 times since it launched in July 2011. It was downloaded 189 times in the last 30 days.
Does Single Category Permalink work with WordPress 7.1?
Single Category Permalink is officially tested up to WordPress 5.8.20, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Single Category Permalink last updated?
The latest version, 2.5.2, was released on September 29, 2021 (5 years ago).
Who makes Single Category Permalink?
Single Category Permalink is developed and maintained by Scott Reilly.
What are the best alternatives to Single Category Permalink?
The most popular alternatives to Single Category Permalink are Pages with category and tag (50K+ installs), Search & Filter (40K+ installs) and PublishPress Taxonomies (40K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
