最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Removing the limit on the number of nested comments

programmeradmin0浏览0评论

Does anyone have a solution for removing the limit on nested comments?

I've found on a site I maintain that there are a few comments where no "Reply" button is visible and since worked out that this is due to the mxa nested comments being reached. It's already set the max setting possible in the WordPress settings (in the discussions settings page) which is 10.

There was a plugin that did this (/) but it's not maintained and don't even want to try it. Has anyone found a proper fix to extend / remove this limit?

Does anyone have a solution for removing the limit on nested comments?

I've found on a site I maintain that there are a few comments where no "Reply" button is visible and since worked out that this is due to the mxa nested comments being reached. It's already set the max setting possible in the WordPress settings (in the discussions settings page) which is 10.

There was a plugin that did this (https://en-ca.wordpress/plugins/infinite-comment-replies/) but it's not maintained and don't even want to try it. Has anyone found a proper fix to extend / remove this limit?

Share Improve this question asked Jan 5, 2021 at 10:16 AdamJonesAdamJones 3282 gold badges7 silver badges26 bronze badges 3
  • 1 the plugin looks fine, however have you tried just setting it to more than 10? Either by adding a new option to the dropdown via the dev tools, or by directly setting the option via update_option(... or the options.php page? ( thread_comments_depth is the option name ) – Tom J Nowell Commented Jan 5, 2021 at 10:36
  • Ah great, just updating thread_comments_depth worked perfectly! Feel free to write an answer if you want some points. – AdamJones Commented Jan 5, 2021 at 14:48
  • This question might help... https://wordpress.stackexchange/questions/215575/how-to-allow-the-reply-link-to-remain-on-the-comment-form-after-i-have-reached-m – Pete Commented Dec 17, 2021 at 9:26
Add a comment  | 

1 Answer 1

Reset to default 2

thread_comments_depth is the option you need to change, and while the dropdown gives you several predefined values, the option can store any value.

So if you use the dev tools to adjust the dropdown to add a 9999 option, you can set it to a max of 9999 nested comments, or more even. You can also set the option directly via update_option, or with the options.php admin page that lists all options.

发布评论

评论列表(0)

  1. 暂无评论