WP-CommentNavi
Adds a more advanced paging navigation for your comments to your WordPress blog.
Escolha sólida
WP-CommentNavi is a solid plugin choice in 2026, with a few things worth checking first. It runs on 700+ sites, is rated 5/5 and was last updated 4 months ago, and scores 62/100 on our health check.
- Small user base (700+ active installs)
- Muito poucos comentários até agora
- Precisa de PHP 8.2 ou mais recente
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 WP-CommentNavi stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| COMENTÁRIOS | >100 |
| navigation | >100 |
| pages | >100 |
| pagination | #60 |
| paging | #4 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★ ★★★★★ 5 de 2 comentários
About WP-CommentNavi
Do Readme oficial · v2.0.0Descrição
Replaces the plain ← Older Comments | Newer Comments → links with numbered page links.
Exemplo: Page 1 of 20: [1] 2 3 4 ... Last
It is the comment-thread counterpart of WP-PageNavi, and the two are deliberately built the same way, down to the names of the filters that change the class names.
The plugin icon is by Freepik from Flaticon.
Recursos
- Numbered page links instead of two prev/next links
- A drop-down list style, for threads with a great many pages
- Every piece of the navigation’s text is configurable, including inline SVG arrows
- Larger page numbers — 10, 20, 30 — for jumping across a long thread
- Ten filters for the element class names, one for the finished markup
- One stylesheet that serves both left-to-right and right-to-left locales, restyled with two CSS custom properties
Doações
Passei a maior parte do meu tempo livre criando, atualizando, mantendo e apoiando esses plugins, se você realmente ama meus plugins e pode me poupar alguns dólares, eu realmente aprecio isso. Se não, sinta-se à vontade para usá-lo sem qualquer obrigação.
Uso
The template tag reads figures that WordPress only populates inside comments_template(), so it belongs in comments.php and produces nothing anywhere else.
It also accepts an array of arguments:
<?php
wp_commentnavi(
array(
'wrapper_tag' => 'nav',
'wrapper_class' => 'my-comment-nav',
'options' => array( 'num_pages' => 3 ),
)
);
?>
Pass 'echo' => false to get the markup back as a string instead of printing it.
Changing the CSS
The navigation inherits its font and its colours from your theme, and the two colours it does set are CSS custom properties, so the usual way to restyle it is to set those in your theme’s style.css:
:root {
--wp-commentnavi-border-color: #d0d0d0;
--wp-commentnavi-border-color-current: #c0392b;
}
If you need to change more than that, copy css/wp-commentnavi.css out of the plugin directory into your theme’s directory as wp-commentnavi.css and edit it there. Your changes then survive plugin updates, and a copy in a child theme wins over one in the parent theme.
Alternatively, set Use wp-commentnavi.css to No on the settings screen and write the styles yourself.
Changing Class Names
These filters change the class names assigned to the navigation elements:
wp_commentnavi_class_pageswp_commentnavi_class_firstwp_commentnavi_class_previouscommentslinkwp_commentnavi_class_extendwp_commentnavi_class_smallerwp_commentnavi_class_pagewp_commentnavi_class_currentwp_commentnavi_class_largerwp_commentnavi_class_nextcommentslinkwp_commentnavi_class_last
Other Filters
wp_commentnavi— the complete markup, before it is printedwp_commentnavi_allowed_html— the tags allowed inside the navigation text settingswp_commentnavi_capability— the capability required to reach the settings screen,manage_optionsby default
add_filter( 'wp_commentnavi_capability', function ( $capability, $context ) {
return 'edit_pages';
}, 10, 2 );
Instalação
- Instale e ative o plugin.
- Open
wp-content/themes/<YOUR THEME NAME>/comments.phpand add<?php if ( function_exists( 'wp_commentnavi' ) ) { wp_commentnavi(); } ?>where the old comment links were. - Go to
WP-Admin -> Settings -> CommentNavito configure it.
The tag reads figures WordPress only populates inside comments_template(), so it belongs in comments.php and nowhere else.
Log de Changes
Requires WordPress 6.8 and PHP 8.2. If your theme calls wp_commentnavi_all_comments_link(), the site will fatal. That function and the comment-all query variable behind it are gone: any visitor could append ?comment-all=1 to any URL and make WordPress load up to 9999 comments in one query. Delete the call from your theme's comments.php. wp_commentnavi() and wp_commentnavi_dropdown() are unchanged. The settings screen is at options-general.php?page=wp-commentnavi, still under Settings -> CommentNavi. The old address embedded the plugin's folder name, so anyone who installed the plugin under a different folder name could not open the screen at all. Settings migrate on the first admin page load, from commentnavi_options to wp_commentnavi_options, with the plugin and schema versions in a wp_commentnavi_version row of their own. Point any script or WP-CLI command that writes commentnavi_options directly at the new name. The navigation inherits your theme's colours instead of painting blue links, black borders and a white background over them, so it now works on a dark theme. Set --wp-commentnavi-border-color and --wp-commentnavi-border-color-current to restyle it. If you copied commentnavi-css.css into your theme, rename your copy to wp-commentnavi.css; the plugin's own file is css/wp-commentnavi.css and the theme override is looked up under the matching name.
2.0.0
- BREAKING: Requires WordPress 6.8 and PHP 8.2, up from 6.0 and 7.4.
- BREAKING: The “View all comments” feature has been removed — the
comment-allquery variable andwp_commentnavi_all_comments_link(). It hookedpre_get_postswith nois_main_query()oris_singular()guard and forcedcomments_per_pageto 9999, so any visitor could trigger an unbounded comment query on any URL. If your theme callswp_commentnavi_all_comments_link()you must remove that call. See the FAQ - BREAKING: The settings page moved to Settings -> CommentNavi at
options-general.php?page=wp-commentnavi. The old address embedded the plugin’s directory name, which made the screen unreachable for anyone who had installed the plugin under a different one. Update your bookmarks - BREAKING: The settings are stored in
wp_commentnavi_optionsinstead ofcommentnavi_options, and the plugin and schema versions in awp_commentnavi_versionrow of their own. Your settings are carried across automatically the first time wp-admin is loaded after updating - BREAKING:
commentnavi-css.cssis nowcss/wp-commentnavi.css, and a copy in your theme has to be renamed towp-commentnavi.cssto keep being used - NEW: Restructured into
includes/following the Plugin Handbook layout. The plugin is now five classes behind the same template tags - NEW: The settings page is built with the WordPress Settings API
- NEW: Larger page numbers, as in WP-PageNavi. Off by default, so upgrading does not change how your comment navigation looks — set Number Of Larger Page Numbers To Show to turn it on
- NEW: A Use wp-commentnavi.css setting, so the stylesheet can be turned off without editing anything
- NEW: Ten
wp_commentnavi_class_*filters for the element class names, awp_commentnavifilter for the whole markup, andwp_commentnavi_allowed_htmlfor the tags permitted in the navigation text - NEW: A
wp_commentnavi_capabilityfilter, so the settings screen can be handed to a capability other thanmanage_options - NEW:
wp_commentnavi()accepts an array of arguments, including'echo' => falseto return the markup instead of printing it - CHANGED: The stylesheet sets no link colour, border colour or background of its own. It inherits the theme’s colours, and the two it does need come from the
--wp-commentnavi-border-colorand--wp-commentnavi-border-color-currentcustom properties, with a dark-scheme default - CHANGED: The stylesheet is written with direction-neutral CSS, so one sheet serves both writing directions
- FIXED: Network activation and multisite uninstall were fatal errors. Both called
wp_get_sites(), which WordPress removed in 5.1 - FIXED: Multisite uninstall stopped at the hundredth site, leaving the settings behind everywhere after it, and restored the current blog once instead of once per site
- FIXED: XSS. The first, last and numbered links put the navigation text straight into a
titleattribute with no escaping, so a double quote in a setting closed the attribute and everything after it became markup - FIXED: An option row saved by an older version raised a PHP notice on the front end for every setting added since. Defaults are now merged on read
- FIXED: The “Text For Previous …” box displayed the “Text For Next …” value, so the two could never be given different text through the settings screen
- FIXED: Saving the settings added a backslash before every apostrophe, visibly, on the site itself.
addslashes()was applied on top of the slashes WordPress already adds to$_POST - FIXED: A
commentnavi-css.cssin your theme was looked for in the parent theme but loaded from the child theme, so under a child theme neither location worked - FIXED: The plugin directory name was hardcoded, so the stylesheet 404d if the plugin was installed under any other directory name
- FIXED: A post with no comments reported “Page 1 of 0” when Always Show Comment Navigation was on
- FIXED: The drop-down style pointed its form at an admin URL, and
case 2;used a semicolon, which PHP 8.5 deprecates - FIXED: The stylesheet is enqueued on
wp_enqueue_scriptsrather thanwp_print_styles, and its version tracks the plugin version instead of being pinned to 1.10 - NOTE: Four settings labels were renamed from “Text For First/Last/Next/Previous Comment” to “… Page”, because those links go to a page of comments rather than to a comment. Renaming a string resets it on translate.wordpress.org, so those four labels will show in English in translated locales until someone retranslates them. Every other existing label kept its original wording precisely to avoid that
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 WP-CommentNavi alternatives
Todos os plugins de comentários →FAQ
WP-CommentNavi: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is WP-CommentNavi free?
Yes. WP-CommentNavi is free to download and use from the official WordPress.org plugin directory.
Is WP-CommentNavi safe to use in 2026?
WP-CommentNavi is a solid plugin choice in 2026, with a few things worth checking first. It runs on 700+ sites, is rated 5/5 and was last updated 4 months ago, and scores 62/100 on our health check.
How many websites use WP-CommentNavi?
WP-CommentNavi is active on 700+ WordPress websites and has been downloaded 66,617 times since it launched in November 2008. It was downloaded 411 times in the last 30 days.
Does WP-CommentNavi work with WordPress 7.1?
WP-CommentNavi is officially tested up to WordPress 7.0.9, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
What PHP version does WP-CommentNavi need?
WP-CommentNavi requires PHP 8.2 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was WP-CommentNavi last updated?
The latest version, 2.0.0, was released on August 9, 2026 (4 months ago).
Who makes WP-CommentNavi?
WP-CommentNavi is developed and maintained by Lester Chan.
What are the best alternatives to WP-CommentNavi?
The most popular alternatives to WP-CommentNavi are Akismet Anti-spam: Spam Pro… (5M+ installs), Disable Comments (1M+ installs) and Antispam Bee (700K+ 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


