The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Change comment orde...
 
Share:
Notifications
Clear all

[Solved] Change comment order on a single post

2 Posts
2 Users
0 Reactions
633 Views
Posts: 12
Topic starter
(@jharries)
Eminent Member
Joined: 4 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

1 Reply
Asti
Posts: 7330
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi John,

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

Share: