wpDiscuz - WordPress Comment Plugin
Change comment orde...
 
Share:
Notifications
Clear all

[Solved] Change comment order on a single post

2 Posts
2 Users
0 Likes
172 Views
jharries
Posts: 12
Topic starter
(@jharries)
Active Member
Joined: 2 years ago

Good Day,

I have comment ordering set to oldest first which my readers seem to like. However, there is three pages where it would be better if the newest comment was first by default. Is there a code snipit that could change the order for just a few pages?

Thanks

John

Topic Tags
1 Reply
Asti
Posts: 5516
 Asti
Support
(@asti)
Illustrious Member
Joined: 5 years ago

Hi John,

You should use the native (core) WordPress functions/hooks in this case. For example the pre_get_comments one. 

Share: