Latest Version is 1.0.5 and major changes include:
- Typo on Custom Fields
- Add a noindex,nofollow meta on show all comments
- Ascending comments and Permalinks disabled causes invalid
redirection URI’s - Bad escaping on keywords and descriptions
- Performance by not demanding additional filtering in several vars of the admin panel.
- Default and classic theme upgraded to work with latest features of WordPress 2.8 (comments threaded and reply to comments are supported but not fully working).
Paginated Comments is a plugin developed for my website on Spider Bites (BadSpiderBites.com). I have a ton of comments, many that include graphics and displaying 500 comments along with the post would create one of the slowest loading pages on the net!
You can download it from the WordPress Repository.
Most blogs will limit or even worse, close comments once they reach a certain number – something you should never do on a blog! You can never have enough comments!
I searched for a plugin and could not find anything that offered a SE friendly solution. Paginated Comments is built with SE optimization in mind and gives you the ability to break your comments into pages. You can create pages based on size of comments so that no page of comments is greater than a certain file size, or, you can create pages based on number of posts per page (100 for example).
Another key feature is the ability to remove or provide an excerpt of the main text used on the first page of comments. This prevents duplicate content and will help your paginated comments become indexed.
Features of Paginated Comments
- Titles for each page of comments.
- Description and Keywords for each page of comments.
- Paginate by size of all comments.
- Paginate by a number of comments.
- Personalize your Pretty Permalinks URI’s.
- Control page of comments post content.
- you can personalize per post your settings
- Manage everything within your WordPress Dashboard with a easily menu.
SYSTEM RECOMMENDATIONS
- PHP version 4.2 or higher.
- MySQL version 4.0 or higher.
- WordPress 2.8 or 2.7.x
INSTALLING PAGINATED COMMENTS
- Unzip the package into an empty directory.
- Upload the entire directory “paginated-comments” to your WordPress Plugin directory, default is: “/wp-content/plugins/”.
- Login to your WordPress Dashboard and go to the plugins section.
- Activate the Plugin.
SETTINGS
Paginated Comments offers a great number of features that can be managed from a simple sub-menu located inside the Settings Menu, in the following section we will give you a brief description of all the options.
PAGINATION
The pagination section provides you with a number of options for splitting multiple comments into pages. Pages require template modification in order to have this ability, posts do not. See: codex.wordpress.org/Include_Tags#The_Comments_Template for more information.
- Method: Set preferred Pagination Method.
- Ordering: Comments Ordering.
- Range: Numbers of pages to display.
- Per Page: Number Of Comments Per Page.
(Only with the method “Number Of Comments”). - Per Size: Sets Maximum Size of Comments Per Comment Page.
The Size is expected to be in bytes.
(Only with the method “Size Of Comments”). - Fill Last Page: Enables/Disables “Fill Last Page” feature.
When enabled, the last comment page will contain the maximum number of comments.
(Takes effect only with “Number Of Comments”). - Show-All: Enables/Disables “Show All” feature.
When enabled, users will have the option to view all comments in one single page. - Show-All Ordering: Show-All Comments Ordering.
- Default Page: Set Default Selected Page.
When this option is set to “AUTO” the default page is set according the Comments Ordering:
If you set ordering to “ASC” the default page will be the first (earliest comments).
If you set ordering to “DESC” the default page will be the last (latest comments).
PERSONALIZATION
This section allows you to add information that will help make your comment pages more search engine friendly 🙂
- Insert On Pages Descriptions/Keywords: Enable/Disable Insert descriptions and/or keywords under comments pages. If enabled this option will use the ‘Default Description’ to make a description for pages and keywords.
It can be expanded via Custom Fields (see custom fields section for more information).
- Default Description: Default Description for Page-Descriptions and Page-Keywords.
This option currently supports these tags:
%title% = Post Title
%pnumber% = Current Page - Page Title: Title for Comments Pages.
This option currently supports this tags:
%pnumber% = Current Page - Page Content: Set what content to show under Comments Pages.
Full = Complete content (not recommended)
Excerpt = Displays the post excerpt. If you do not provide an explicit excerpt to a post (in the post editor’s optional excerpt field), the first 55 words of the post’s content are used by default.
Nothing = Outputs a link to the first/original article page. - Pretty Permalinks: Enables/Disables Pretty Permalinks for Comments Page.
- Page Slug: Sets Pages Slugs/URIs for Comments Pages.
(Takes effect only if pretty permalinks are enabled). - Show-All Slug: Sets Show-All Slug/URI for Show-All Link.
(Takes effect only if pretty permalinks are enabled).
Custom Fields
Paginated Comments allows you to override some of the previously discussed settings via custom fields, so you can personalize per post your settings :-).
- paginated_comments:
Values are on or off
on = Enables Paginated Comments.
off = Disables Paginated Comments. - pcp_method:
Values: number / size
number = Set Pagination to Paginate Comments By Number Of Comments.
size = Set Pagination to Paginate Comments By Size Of Comments. - pcp_perpage:
Number of comments per page. - pcp_persize:
Sets Maximum Size of Comments Per Comment Page.
The Size is expected to be in bytes. - pcp_ordering:
Values are asc or desc
asc = Set Comments Ordering to Ascending.
desc = Set Comments Ordering to Descending. - pcp_description:
Extra description to be used along with “Default Description” value. - pcp_keywords:
Extra keywords to be used along with “Default Description” value.
Template Tags
From time to time blog owners, administrators or designers may find the default layout not suitable for their interest, in order to let you design your own layout, Paginated Comments provides you with certain functions that you can use within your template.
- Paginated_Comments_template
Description
Loads the comment paged template.
Usage
<?php Paginated_Comments_template(
‘comment-template-file’
); ?>Examples
Loading default comment paged template:
<?php Paginated_Comments_template(); ?>Loading custom located template:
<?php Paginated_Comments_template(
‘/paginated-comments.php’
); ?>Parameters
comment-template-file
(string) Location of the template file to be used with Paginated Comments. Defaults to ‘comments-paged.php’.Notes
This function first will try to reach the ‘comment-template-file’ location inside your current template location.
If this file doesn’t exist then it will try to find (again) inside your current template location but searching for ‘comments-paged.php’.If this file (also) doesn’t exist it will load the default ‘comments-paged.php’ template (included with the plugin).
If this file (also) doesn’t exist it will load the default comment template. - Paginated_Comments_numeration
Description
Print comments enumeration.
Usage
<?php Paginated_Comments_numeration(); ?>Examples
Print current comment number:
<?php Paginated_Comments_numeration(); ?>Parameters
This tag has no parameters.Notes
This tag must be called within the comment loop. - Paginated_Comments_URL
Description
Generates URI’s/Permalinks for comments.Usage
<?php Paginated_Comments_URL(‘fragment’, ‘current-page’); ?>Examples
Print Unique Comment Paged URL:
<?php Paginated_Comments_URL(‘comment-‘ . get_comment_ID()); ?>Parameters
fragment
(string) Text and comment-ID for URI/Permalink generation. Defaults to ‘comments’.current-page
(string) Type of Link (Just for internal usage). Defaults to NULL.Notes
This tag must be called within the comment loop. - Paginated_Comments_print_pages
Description
Generates Links for the comments pages.Usage
<?php Paginated_Comments_print_pages(‘separator’, ‘selected-before’, ‘selected-after’, ‘left-navigation’, ‘right-navigation’, ‘all-string’, ‘older-alt’, ‘newer-alt’, ‘all-alt’); ?>Examples
Print Default Page Links Layout:
<?php Paginated_Comments_print_pages(); ?>Separate Page Links with a “|”:
<?php Paginated_Comments_print_pages(‘|’); ?>
Wrap selected/current page within <h3> tags:
<?php Paginated_Comments_print_pages(‘ ’, ‘<h3>’, ‘</h3>’); ?>Set Left and Right Navigation links to ‘<-‘ and ‘->’ (respectively):
<?php Paginated_Comments_print_pages(‘ ’, ‘<strong>[‘, ‘]</strong>’, ‘<-‘, ‘->’); ?>Parameters
separator
(string) Separator between pages. Defaults to ‘ ’.selected-before
(string) Left string to append to the current page. Defaults to ‘<strong>[‘
selected-after
(string) Right string to append to the current page. Defaults to ‘]</strong>’left-navigation
(string) Left Navigation Link. Defaults to ‘«’right-navigation
(string) Right Navigation Link. Defaults to ‘»’all-string
(string) Text to be used for Show ALL Link. Defaults to ‘Show All’
l10n compatible.older-alt
(string) Older Alternate text. Defaults to ‘Older Comments’l10n compatible.
newer-alt
(string) Newer Alternate text. Defaults to ‘Newer Comments’
l10n compatible.all-alt
(string) Show ALL Link Alternate text. Defaults to ‘Show All Comments’
l10n compatible.Notes
Is best to wrap this function within the conditional tag Paginated_Comments_have_pages(). - Paginated_Comments_have_pages
Description
Conditional Template Tag that returns TRUE if we have more than one page.Usage
<?php Paginated_Comments_have_pages(); ?>Examples
Print Pages ONLY if have more than one page:<?php if ( Paginated_Comments_have_pages() ) : ?>
<p class=”comment-page-numbers”>
Pages: <?php Paginated_Comments_print_pages(); ?></p>
<?php endif; ?>Parameters
This tag has no parameters.Notes
This tag has no notes. - Paginated_Comments_content
Description
Print Post Content.Usage
<?php Paginated_Comments_content(‘more_link_text’, strip_teaser, ‘more_file’); ?>Examples
Displays the content of the post and uses “Read more…” for the more link text when the <!–more–> Quicktag is used.
<?php Paginated_Comments_content(‘Read more…’); ?>Parameters
more_link_text
(string) The link text to display for the “more” link. Defaults to ‘(more…)’.strip_teaser
(boolean) Should the text before the “more” link be hidden (TRUE) or displayed (FALSE). Defaults to FALSE.more_file
(string) File the “more” link points to. Defaults to the current file. (V2.0: Currently the ‘more_file’ parameter doesn’t work).Notes
In order to control the post-content inside comments page, we have to overwrite/swap the function the_content, the plugin does this job
by default but if you want personalization you will need to swap the_content with this one. - get_Paginated_Comments_content
Description
Retrieves Post Content.Usage
<?php $result = get_Paginated_Comments_content(‘more_link_text’, strip_teaser, ‘more_file’); ?>Examples
Retrieves the content of the post and uses “Read more…” for the more link text when the <!–more–> Quicktag is used.
<?php $result = get_Paginated_Comments_content(‘Read more…’); ?>Parameters
more_link_text
(string) The link text to display for the “more” link. Defaults to ‘(more…)’.strip_teaser
(boolean) Should the text before the “more” link be hidden (TRUE) or displayed (FALSE). Defaults to FALSE.more_file
(string) File the “more” link points to. Defaults to the current file. (V2.0: Currently the ‘more_file’ parameter doesn’t work).Notes
This function is for Legacy/Hack Support and for Plugin Interoperability.
LICENSING
Paginated Comments has been released under the GNU Public License.
Further information about license its contained and described inside the file license.txt
Note: Support for this has been moved from this page the WordPress plugin page.
how do i remove date and time from the comments when this plugin is activated?
really looking for it from last 2 hours . disable plugin it works as i had edited comments.php . turn this thing on date and time comes again.
any help will be appreciated!
Hi Jim:
How I wish this plugin was fixed for threaded comments also. The plugin is great – but I have a blog that gets about 200+ comments per day and a lot of them are threaded comments – which unfortunately is not supported. any chances of rolling out a new version with full support for threaded comments?
Thanks,
Sameer
I cannot find where to edit the text box. The box is to wide for my site. Any help?
Hi. Thanks for this plugin. I have a question for you.
I did not understand where i where I put the code
to call my template comment. I would like to know in which file i must put this code. Thanks.
How can I get back all the nested comments? Any plan to get this working anytime soon? All my replies to people are not looking too good right now.
Thanks, great plugin
Hello,
I have set up the paginated comments plugin on one of my client’s site. It works very well, thank you. Although, he has permalinks set up to append “.html” at the end of the URL.
By Default the plug-in is making comment page URLs like:
And the client doesn’t want to make any changes in the .htaccess either. Is there any way I can resolve this by tweaking the plugin?
Please help.
Thank you for your reply..
but is possible that now with this plugin and wp 2.9.2 i can’t edit my comments.php? xD I edit it but i haven’t changement…
for example i’ve delete all the file comments.php and my blog work yet normally XDXDXD
Hi Fil,
I am afraid with the new changes in the next version of WordPress that this plugin has reached it’s end of life.
Now with rel canonical, you can have multiple pages of comments with rel=canonical pointing to the main page of all comments – in this way, you are telling the search engines that these comment pages are duplicates of the one main page.
I’m still wrapping up issues with the conversion of this site, but once I have it completed, I’ll update the information on how to do this and how to make sure that it’s working!
Very very very good…
please don’t abandon this plugin 🙁
Jim,
Thanks for the plugin! One question, I have a live site and a mockup site on different hosts. From what I can tell, everything is identical with the sites with the exception of the PHP version. The live site has 4.4.7 and the mockup has 5.2.4. I’m seeing different behavior when someone is viewing the last page of comments while submitting a comment. After the comment is submitted on the live site, the user is returned to the first page of comments. On the mockup, the user stays on the last page. The latter behavior is desired.
Any ideas how to fix the live site?
Thanks,
-Mike
I was wondering if is possible to have only the X last comments on the post and only the “show all” page for the rest, i.e one comments page for post, and only a few in the single post bost.
Hello
I have tried insert the new WP feature “threaded comment” in the default plugin template and cannot 🙁
Someone have success on this? I see the question, but not the answerI would ve thankful if you can post a paginated comments template with support to the “reply” link below the comments text
I have seen some themes which even add an expansable form to reply when you click on the link, but have no idea how to make this.
ok I got that I have to set the default to last page 😉
thank you so much
I think there is missing a part
( Comments should be displayed with the newer/older comments at the top of each page )
any idea?
it’s important that the latest comment is displayed at the bottom of the page for me and the latest comments are displayed in the first page. seems it’s impossible with this plugin :((
Thaaaaaaaaaaaaaaaank youuuuuuuuuuuuuuuuuuuu sooooooooooooooooo muuuuuuuuuuuuuuuucchhhhhhhhhhhhhhh
I’ve been searching for all these explanation a whole month. thank you and I hope god gives you whatever you WANT :))
Hi Jim
congratulations for your pretty useful plugin. I am using WP 2.7 and will not be able to migrate to a later version of WP (search engine availability related to the themes I have in use)
I have a question regarding nested comments. I believe nesting is suppressed/not possible with the current version of paginated comments. Any plans in supporting nesting in the future?
Thanks for the plugin. The language files for es_ES are severely broken in the latest version. I had to manually delete them in order to make any sense of the configuration screen.
For those having trouble with the Spanish translation. I used Poedit and opened the .po file, then saved it to create a new .mo file, I uploaded this new file and it worked. Good luck.
Hi there,
really appriate this plugin, it’s exactly what I was looking for. The only issue I’m having is to display the “reply” link to allow users to answer to comments. In you description:
“Default and classic theme upgraded to work with latest features of wordpress 2.8 (comments threaded and reply to comments are supported but not fully working).”
What should I do to make the reply functionality working with this plugin?
Thanks for your answer.
Hey Jim! 🙂
I’m using your plugin on WordPress 2.8.4- I know WordPress has paginated comments now, but I don’t use the wp_list_comments function (because it won’t let me customize my comment section the way I want!) so their pagination doesn’t work. Yours lets me separate my comment pages *and* have a customized comment section! Thanks!
I also separate my comments from trackbacks/pingbacks. The tracks/pings appear under the comment form. As a side effect of the plugin, the tracks and pings now only appear on the “Show all” comment page.
Do you know if there’s a way to get the tracks and pings to show on *all* comment pages?
Here’s an example page:
kevinandamanda.com/whatsnew/new-pictures/birthday-bliss.html
If you just go to that page, you don’t see the trackback down at the bottom, but if you click on page 2 or Show All, you can see the trackback. Ideally, I’d like for people to be able to see the tracks and pings on the main page, if possible! 🙂
Thanks so much for your help- please let me know if you need anymore information. 🙂
how can i include the pagination plugin in a custom page i`ve made for wordpress?
Sorry… I found out what breaks your plugin. It’s one new plugin I’ve tried at the blog: Category & Page I c o n s
Thanks for the great plugin you’ve made! It itself works flawlessly 🙂
Hello Jim,
It’s a great plugin and I’ve had no problems so far. But today, suddenly (out of nothing) I’ve started getting the following error:
Fatal error: [] operator not supported for strings in /home/h2/s/sl/***/vhosts/***/public_html/wp-includes/general-template.php on line 32
Warning: array_slice() [function.array-slice]: The first argument should be an array in /home/h2/s/sl/***/vhosts/***/public_html/wp-includes/plugin.php on line 339
Can you help me? I’m using the latest version of WordPress, I also have your plugin activated at another blog, which is also WP 2.8.4, and has similar configuration (but no problems there)… please help me! Thanks in advance… Alex
Hey Paul,
Awesome looking site!
Inside the paginated comments directory, you’ll find themes/classics/paginated-comments.php
You need to modify that for your website’s colors. You do that by changing the div names to what you are using in your themes comments.php file.
Hope that helps!
Jim
I love your plug-in, it has made navigation of my site much easier. However, since adding your plugin, it changes the background color to grey when it should be white. For the site in question (factpile.com) I am using the exact same theme as you are for your bedbugs site.
Any insight you could provide would be greatly appreciated.
Thanks,
Paul
I installed your plugin and tried some changes in the tool’s settings.
Nothing changed. I only want to have 10 comments.
Watch this page
Hey Jim,
Great plugin. Can it work alongside the built in threaded comments feature in 2.7+
Thanks
You may need to tweak the plugin’s template as you mentioned above, but after that, it’s a snap.
I use this plugin and it works great for me, as with this site for example 🙂
Glad it’s working for you as well!
Have a great day!
Jim
So far so good appears to be working fine for me. The only hard part is getting the plug-in’s template to fit into your theme’s design structure. I had to copy everything from my theme’s comment.php into paginate-comments.php found in the theme, default folder. I deleted classic as it’s redundant.
Thanks for the plug-in
Hi mate,
Installed this plugin, however it overwrites my template design on the comments section.
I have a dark sheet colour and it takes away the white backgrounds to my comments, and leaves the writing black. Have no problem with this if it’s easy to change the text colour, but I’m useless with code, so have no idea what I need to change.
Cheers in advance.
hi. not compatible with all in one seo pack or platinum seo pack.
I’ve tried them all (seo plugins). There are 2 meta tags. I do not want them to meta all in one seo pack platinum seo pack.
example:
all in one seo pack 1.5.7 ob_start_detected [-1,-1] -->
meta name="description" content="xxx" /
meta name="keywords" content="xxxx" /
link rel="canonical" href="xxx" /
all in one seo pack
Start Paginated Comments -->
meta name="description" content="xxx Comment Page 1" /
meta name="keywords" content="xxx,Comment,Page,1" /
End Paginated Comments
platinum seo pack 1.2.6 -->
meta name="robots" content="index,follow" /
meta name="description" content="xxx" />
meta name="keywords" content="xxx />
link rel="canonical" href="xxx/" /
platinum one seo pacl
Or
Start Paginated Comments
meta name="description" content="xxx Comment Page 1" /
meta name="keywords" content="xxx,Comment,Page,1" /
End Paginated Comments
platinum seo pack 1.2.6
meta name="robots" content="index,follow" /
meta name="description" content="xxx" /
meta name="keywords" content="xxx /
link rel="canonical" href="xxx/" /
platinum one seo pack
hi. not compatible with all in one seo pack or platinum seo pack.
I’ve tried them all (seo plugins). There are 2 meta tags. I do not want them to meta all in one seo pack platinum seo pack.
example:
all in one seo pack 1.5.7 ob_start_detected [-1,-1] -->
meta name="description" content="xxx" /
meta name="keywords" content="xxxx" /
link rel="canonical" href="xxx" /
all in one seo pack
Start Paginated Comments -->
meta name="description" content="xxx Comment Page 1" /
meta name="keywords" content="xxx,Comment,Page,1" /
End Paginated Comments
platinum seo pack 1.2.6 -->
meta name="robots" content="index,follow" /
meta name="description" content="xxx" />
meta name="keywords" content="xxx />
link rel="canonical" href="xxx/" /
platinum one seo pacl
Or
Start Paginated Comments
meta name="description" content="xxx Comment Page 1" /
meta name="keywords" content="xxx,Comment,Page,1" /
End Paginated Comments
platinum seo pack 1.2.6
meta name="robots" content="index,follow" /
meta name="description" content="xxx" /
meta name="keywords" content="xxx /
link rel="canonical" href="xxx/" /
platinum one seo pack
hi. not compatible with all in one seo pack or platinum seo pack.
I’ve tried them all (seo plugins). There are 2 meta tags. I do not want them to meta all in one seo pack platinum seo pack.
example:
<!– all in one seo pack 1.5.7 ob_start_detected [-1,-1] –>
<!– platinum seo pack 1.2.6 –>
Or
<!– platinum seo pack 1.2.6 –>
Ok! I got User Photo to behave along side of your Paginated Comments plugin. The next wrinkle I would like to iron out is, is there a way to have the comment form show only on the last page?
If a topic has multiple pages of comments I’d like to think people had read them rather than give them the chance to reply from page 1. Basically because their questions or opinions my have already been addressed in comments pages elsewhere.
What I’d like to see:
[1] 2 3 4 5 Reply
The “Reply” would open up the last page of comments at the comment form.
Also I’ve noticed that when you click the Submit Comment button the page regenerates and it sends you back to the head of the thread, instead of the comment you’ve just submitted. Is there something in WordPress that can have the user sitting at his comment after submission instead of having to navigate back to it?
thx
dean
I have the “User Photo” plugin which uploads and stores avatars locally, it worked fine until I installed Paginated Comments. Some how it strips the Avatar out of my single.php. The Avatars show fine in the comment section, but the post sitting on top of the comments no longer has the author’s avatar.
The only way I’ve been able to get it back is to deactivate the paginated plugin. Have the same prob with “Paged Comments” plug. Wondering if you could take a guess at what I’m doing wrong?
thx
dean
Hi,
Gave your comment paginator a try and works pretty good except of course on the theme that I am interested in using. I’m new to WP so go easy as I try to describe 🙂
Comments to a post are normally in a gray box with an avitar to the left for, then the next and so on. When I install your plug in things look almost OK, except the comment is now out of alignment with the box and the display is a bit ‘messed up’
example (I’ll leave it up for a while)
theunmutual.com/blog/?p=42
If you have any tips on where to start looking (Maybe div names getting changed and CSS of theme not working?)
Thanks for any help.
Sandy
hi there,
i’ve a little problem. the plugin itself works fine, but if it is activatet i have problems with my single.php!!
evry single artikel (respectively: it should be one article) has 4 articles within! so its the original article itself but also the articles that are shown in the “more article box”, which gets the last 4 articles of this category.
I think there is problem between the query of the posts and your plugin.
may you can help me please!?
please anser me on my e-mail!
thanks a lot
many greetings
wolfi
Hi
Installed the plugin. It didn’t mesh well with K2 so I’ve reverted back to a modified Kubrick (it’s an old blog I no longer update but still gets good traffic).
The plugin works 100% perfectly if I set the comments to display in descending order. However, I want it ascending, and when I do that each time a new comment is submitted it results in a 404 error.
I can see what the problem is, but have no idea how to fix it!
When set to descending comments, the plugin takes the user back to their last comment. Fine.
But when set to ascending, it adds ‘&cp=1’ before the hashed comment tag (i.e., ‘&cp=1#comment-4305’) in the URL and that produces a 404. The ‘&cp=1’ part is not there when the plugin is set to descending.
The comment does get through, but obviously a 404 error is not great for visitors. 🙂
You can test it here if you like:
iamsheamus.com/everything-else/dawn-day-life-feeling-good/
Feel free to leave a comment.
Any ideas? It’s great otherwise.
Thanks,
Sheamus
Thanks for creating this plug-in. It’s got about 98% of what I was looking for. What’s the remaining 2%? Glad you asked 🙂 I think it would be useful to be able to indicate a different number of comments on the main article page than on subsequent pages. Keep the main article page clean with just a small number of comments, but anyone that wants to read comments can do so easily because subsequent pages could be set to have 20+ to scroll through. Combined with SEO for Paged Comments which uses just the article excerpt on comment pages and we’d have a perfect solution.
@Pete
After reviewing that part of the plugin seems that some old code from in development version was left there also the filtration for the others custom fields was so tough that they seems to not work (not anymore).
I will be releasing a version 1.0.5 which will cover your problem and the miguel suggestion for seo all-pages.
If you want a momentary workaround the open your paginated-comments.php plugin file (not template) found the line 719 and you will find this:
$PdCs_Settings['EPC_comments_ordering'] = ( preg_match('/\A(asc|desc)\Z/', $val) ) ? $val : 'desc';
Change that for
$PdCs_Settings['comments_ordering'] = ( preg_match('/\A(asc|desc)\Z/', $val) ) ? $val : 'desc';
(as you can see the problem is related that i forget to delete the “EPC_” tag in the array-key code which was the way this function was called under first development of the plugin).
And this should the job for especially pcp_ordering, others will need some more code changes so just await for the 1.0.5 if you don’t want or know how to edit php-code.
Regards
Thanks for the response!
I tried adding a custom field called pcp_ordering and setting the contents as both “asc” and “desc” — nothing happened. The posts are still sorted in the order I set in the preferences screen — ie, the preferences are not over-ridden for the individual post. Any ideas?
@Miguel:
By the moment there is no such suppport cause all comments on a single page was designed to be like if we were viewing in the old-way the comments, we will add a noindex,nofollow meta-header on that page on the next version of the plugin so it won’t be indexed by the robots.
@Pete:
Just go the Custom Fields section while adding/editing a new post/page and put the custom fields you want…
In your case put as name “pcp_ordering” and as value “desc” (without quotes) and that should do the job.
@aguitta:
First i suggest you read this documentation about the translation system used by wordpress and his plugins:
http://codex.wordpress.org/Translating_WordPress
Second you would need to recompile that custom translation (.po) in order to generate the translation (.mo) before using it, my preferred choice is software called poEdit cause its cross-platform and very intuitive..
Best Regards
oh…, forgot to tell you, im using UTF-8
Hello,
Im having trouble with the translation. I tried editing the paginated-comments-es_ES.po to change a few words. But it was an intuitive try. The problem is the same as problem No. 4 from Laquer, I cant change the words and the spanish translation is getting all screwed up. I like the pluggin. MAybe you could advise,
Thank you,
Juanfra.
How do you use the Custom Fields?
I have one post on my blog where I would like the comments to be viewed in DESCENDING order, but I want all the rest of the posts to display comments in ASCENDING order (the default).
Specifically, it’s this post: sixwordstories.net/2008/12/submit/
It gets many, many comments, every single day — whereas, all the rest of the posts only get a handful of comments.
I see that there is Custom Field called “pcp_ordering” that does this, but I don’t know how to specify it for this one post.
Great plugin, by the way! It’s really improved my site.
Great plugin
How I remove the page original content from “show all page”, the option to show only excerpt or nothing doesnt apply there. I dont want duplicated content from original post.
You can is you modify the paginated-comments.php file – look for:
if ( !isset($all) ) $all = __(‘Show All’, ‘paginated-comments’);
replace with
if ( !isset($all) ) $all = __(‘Show Everything’, ‘paginated-comments’);
But – keep in mind you’ll have to do this for every update of paginated comments!
Best regards,
Jim.
Is it possible to rename “Show all” when paginating comments?
UPDATE: WordPress 2.7 does not work with the paginated comments plugin. We are working on an upgrade.
Hello Trevor,
UPDATE: WordPress 2.7 does not work with the paginated comments plugin. We are working on an upgrade.
Thanks Trevor, I’m caching my pages and didn’t realize the code was not working with the new version of WordPress until after I responded!
Best regards,
Jim
Hi Jim,
I hate to be a bother, but is the paginated comments plugin compatible with wp2.7 ?
I just upgraded and now it does not work at all….
If it’s working for others, then the problem must be on my end, so….could you let me know if you have tried it yourself or others are reporting no problems with wp2.7?
Thanks kindly,
trev
Hello, how to allow pagined comments only on certain posts
Thanks in advance..awaiting your kind reply and thanks for the amazing plugin
Terrific plug-in, thanks! I finally figured out how to customize the templating by adding my changes to /wp-contents/plugins/paginated-comments/themes/mytheme/paginated-comments.php
One tiny note: I see you added the #comments anchor for pages 2+, which is great. But if I navigate back to Page 1, there is no #comments anchor. Not sure if this is deliberate, and it’s not a big deal (since people don’t tend to read comments backward), but I thought I’d mention it.
Thanks again!
Thanks for this very useful plugin. It works excellent, but I might have found a (minor) bug: The plugin does not read its settings correctly. This happens after restoring a backup database. I am convinced that the backup database contains the PdCs settings, but they are not read.
The scenario:
1. I create and download a full mysql backup from my remote database (including the PdCs settings)
2. I ftp download all remote blogfiles.
3. I restore the mysql backup to my local database. Now I have a local (working) copy of my blog for development en testing.
4. The paginated comments do not work in this local copy.
5. When I open the settings of the plugin there are “weird” values, not mine, and not the default ones.
6. Entering the settings again and saving does not work (settings are not saved)
My workaround:
After step 3 I deactivate the plugin and activate it again. Now the settings have the default values again. I enter my preferrred settings again, and the plugin is OK again.
It’s no big deal for me, the workaround is good enough, but I thought I’d let you know.
FYI
Plugin version 1.0.3
WP version 2.6.3
The theme that comes with paginated comments is a basic one, but you can modify this to fit your blogs theme exactly. In fact, some themes may not work right out of the box with it and so you’ll have to make that change.
Let me know if you need more detail.
Regards,
Jim.
Hi Jim,
I am probably missing something simple, but is it possible to stop this plugin modifying the template, as it messes the layout of my comments.
thanks
jasmine
Hello,
I’d like to do a Polish translation of pc and when I am done I will be
happy to send it to you to include in your next build. But I have one
question. How do I generate the two files (*.mo and *.po) to do it?
Many thanks for your reply!
—
Zbigniew Szalbot
Love the plugin, one problem – on the main page of the site, all comments are posted – but if you click on the actual number of comments, then the pagination kicks in?
I have installed your plug in on a blog that uses the German language
files from WordPress, unfortunately when I activate your plug In all the text is then back in English and does not recognize the local language that is installed, when I deactivate your plug In I get the German text back again.
Is there anyway I can use your plug In on a German Language Website?
Thanks for any help
I use the Paginated Comments plugin on my website and it generally works fine except for one problem, which may or may not be the fault of the plugin.
When you hover over the link to one of the pages of comments it shows a link of the type:
http: //www.address.com/?p=8724&cp=2#comments
However, because I have permalinks set to ‘day and name’, when the link is click the link that displays is of this type:
http: //www.address.com/2008/08/25/post-title/?cp=2#comments
This work fine when I click on the link, and it seems to work for most people. However others are finding that when they click on the link it doesn’t work, and sends them to the home page. This seems to happen regardless of which browser they use.
Can you suggest what the problem might be? I suspect it could be plugin or WordPress-related.
my fault, I didn’t see the “default page” option 🙂
It should be very useful to have ascending ordered posts BUT with the latest
page showed instead the first one when paginating comments in WordPress.
@Vladimir:
If you read the personalization section you’ll see your issues are already covered. Anyone can do deep personalization over his/her wordpress powered blog template.
About static position of the number of pages: I found it really handy to have the most close pages rather than a 1,2,3,4,… even if the selected comment page is 50, i found it a little strange this behavior but thanks for the suggestion.
@trevor:
Weird, seems to be a template or plugin related issue, since the behavior you are describing is not part of the plugin.
Regards
Hi, Jim, great plug-in, I’ve been looking for something like it forever. I just have one question about it:
On my WP site, I have a custom Attachment.php page that I have hacked pretty extensively to get it to look the way I want it to. I have a lot of images on the site, and I use the attachment.php pretty extensively.
The problem with your plug-in is that, when activated, it sort of makes my attachment.php obsolete. I’m not sure what it does, I think it simply replaces my attachment.php with the standard default one — i.e. attachment.php is no longer loaded/use, I believe.
Is there a way to make the plug-in not do this?
Thanks, and again, great plugin!
hi,
i’m trying to implement paginated comments on a PAGE (not post).
once i activate your plugin, it takes my page and changes it to say it has “the following sub-pages” and lists my main nav bar pages ??
also – it does not paginate the comments but instead gives me this error in the comment section:
Fatal error: Call to a member function on a non-object in /mysite.foo/wp-content/plugins/paginated-comments/paginated-comments.php on line 891
Would you have any advice as to what is happening there? thanks kindly!
trev
HI
The plugin is great piece of work !
If I may suggested few features for next update:
– do not automatically add comment numbers as this breaks the templates
– add comments navigation before comments (leave them after too)
– page numbers should always be named 1, 2, 3 no matter if it’s asc or desc
– navigation CSS editable within a plugin
I’ve been using this plugin which had it implemented http: //blog.2i2j.com/plugins/wp-paged-comments
but was missing titles for each comment page.
Good job once more!
Hi Dmitry,
You have installed and setup the plugin “Reverse Order Comments” by Otaku, this plugin its incompatible with Paginated Comments Plugin, so before using/testing Paginated Comments you will need to deactivate (and uninstall in your theme) “Reverse Order Comments” Plugin by otaku.
I suggest you to use Paginated Comments instead of the “Reverse Order Comments” Plugin by otaku, cause Paginated Comments can do the same as the “Reverse Order Comments” Plugin with REALLY much more features than that plugin.
Regards
Hello,
plugin installed but I get error:
Call to undefined function ro_Paginated_Comments_template() in /home/sdfgdghdf/public_html/xxxxxxx.com/wp-content/plugins/paginated-comments/paginated-comments.php(417) : eval()’d code on line 28
Please, help!
@Erik: Check if your php settings allow the use of short_tags, in case this option is disabled you would need to copy the file paginated-comments.php to your current theme directory (of any of two themes presented in the directory /themes inside the plugin directory), if this does not resolve your problem, then you should check if your PHP version meets the requirements.
@Sam: Inside the directory /themes/ of the plugin is were the “paginated-comments” themes relay, you can modify this files directly or just copy this file to your current theme-directory and change there.
Regards
I am trying to edit some text like “Leave a Reply” – I was able to do it without any problems in comments.php but now that value is being overridden by some other file – where can I change that text and also the number format of the comment?
Thanks,
When I enable the comments, when I view the comments on the blog, it comes back with the following… I have Version 2.5.1.
<? the_date(”,”,”); ?>
<div class=”post” id=”post-“>
<a href=”” rel=”bookmark”>
— @
Just to let you know that the link to the ‘plugin’ page on WP Plugins Repository links only to your main site, rather than https://www.badspiderbites.com/paginated-comments/
p/s: Just wondering, but if paginated comments is a fork of paged comments, perhaps it might be worth mentioning this in the blurb too? 🙂
@Dipo Tepede:
You have installed paged and paginated comments in your blog. As you may know paginated comments is a fork based on paged comments so they are mutually excluded and only 1 can work at the time, so you have to choose between paged (older) or paginated (new and improved).
However in order to avoid collisions between other plugins, i think the class Pager should be renamed to Paginated_Comments_Pager.
Regards
Dear Sir,
I tried activating the plugin and I got the following error:
Fatal error: Cannot redeclare class Pager in /home/dipo/public_html/wp-content/plugins/paginated-comments/classes/class.Pager.php on line 9
Please, help!
@Darkraisin: Seems that you are running the plugin from and a unsupported version, cause the attribute_escape function is presented since version 2.0.6 and the plugin clearly states for WordPress 2.3.x or 2.5.x.
Regards Darkraisin && Jim
Hi
installed it but I get this error:
input name=”comments_page_default_dk” id=”comments_page_default_dk” value=”
Fatal error: Call to undefined function attribute_escape() in D:DomainsXXXXXX.comwwwrootwp-contentpluginspaginated-comments.php on line 236
any idea?
Thanks
Thanks for taking the time to suggest an improvement- It’s completed and I’ll upload it later tonight or tomorrow.
Have a great weekend!
Jim.
Some improvement you could do: when i click on the page numbers it would be better to jump to the comments anchor. Now the page reloads and i have to scroll down to the comments. You did this for Show all, but not for the numbers.
The translation system works perfectly – I’m guessing that your blog is not using UTF-8 and but something like Latin1 which would cause such text to appear. UTF-8 is the standard character-encoding for WordPress since version 2.2 and we support from 2.3.x.
The best you can do with such a setup is to recompile the “paginated-comments-es_ES.po” and use iso-8859-1 as the main character encoding.
It has been tested and retested with 2.3.x and it works great.
Hope that helps 🙂
Jim.
Hello,
I installed the plugin but the following image is what I see when using the Spanish version.
Thanks!
Hello Andre,
It was a bug that came to light when you didn’t have any comments and were sorting based on size. It has been fixed.
Thanks for the heads up!
Jim.
I allways get this error when i use the Template Tag: Warning: Division by zero in C:\xampp\htdocs\wordpress\wp-content\plugins\paginated-comments\paginated-comments.php(417) : eval()’d code on line 52