Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

comment pagination issue with Custom post ttype WordPress

  • SOLVED

I have an issue on comment pagination. I used custom post type "reno firm reviews".

When on single post of custom post type reno firm reviews, the comment pagination url when hover is :http://www.oozaooza.com/RenoFirmReviews/ooza-interior-creation/#comments

Which lead to the error of 310

However, if it is on this url:
http://www.oozaooza.com/Reno%20Firm%20Reviews/ooza-interior-creation/comment-page-1/#comments,

Then its working well.

I am using wp commentNavi plugin to do the pagination. Can someone help me out on changing this permalink or what I have to do.

wan

Answers (4)

2012-09-25

Plugarized answers:

there seems to be an issue with your permalinks where

The correct permalink should be http://www.oozaooza.com/reno-firm-reviews/

however the title of the post has spaces and this is adding the %20

http://www.oozaooza.com/Reno Firm Reviews/ooza-design/

so the pagination is having issues.

<strong>since the post title has spaces the pagination only works if its like;</strong>

http://www.oozaooza.com/Reno%20Firm%20Reviews/ooza-interior-creation/comment-page-2/#comments,

<strong>but the correct format should be</strong>

http://www.oozaooza.com/reno-firm-reviews//ooza-interior-creation/comment-page-2/#comments,


Send me your wp login details via PM i can have a look at this and try and correct this.

Regards


wan comments:

I send you the login already. the spacing is not on post title, but on page title.

2012-09-25

Martin Pham answers:

please check rewrite parameter in your custom post type (reno firm reviews) . Added if it does not exist

for example

register_post_type( 'Reno Firm Reviews', array (
....
'rewrite' => array( 'slug' => 'RenoFirmReviews' ),
.....
) );


if error 404 access wp-admin/options-permalink.php and click Save Changes for flush permalink


wan comments:

the error is 310.

I use custom post UI plugin to create my custom post. Where to check whether it correct?


Martin Pham comments:

please goto /wp-admin/admin.php?page=cpt_sub_manage_cpt
1. click to Edit
2. click to Advanced Options
3. at field Custom Rewrite Slug: insert slug for this post type (no space).
4. Click Save Custom Post Type

2012-09-25

Arnav Joy answers:

can you explain clearly what is the problem

2012-09-25

Abdelhadi Touil answers:

Hi.
For me I always use WP-Paginate plugin for posts in category archive pages and also comments:

[[LINK href="http://wordpress.org/extend/plugins/wp-paginate/"]]http://wordpress.org/extend/plugins/wp-paginate/[[/LINK]]

All instructions are explained in the Installation plugin tab:

[[LINK href="http://wordpress.org/extend/plugins/wp-paginate/installation/"]]http://wordpress.org/extend/plugins/wp-paginate/installation/[[/LINK]]

I didn't try it with custom post type, but for me it's always very good (I was using WP-PageNavi before finding it).
Good luck.


wan comments:

Its not on pagenavi. I have this plugin. its comment pagination that is having this permalink problem