How to sort comments?

Posted in: Newspaper
Post count: 2

I tried to use Cloud templates, but how are the comments sorted? I used oldest first, but when I change to a Cloud Template it shows the newest comments first.

Post count: 20685

Hi,

What comment sorting are you referring to exactly? The comments don’t have any sorting
https://www.screencast.com/t/Wsktt9UKr
Maybe I am misunderstanding something.

Post count: 2

Yes, I know its a “WordPress-thing” (Settings/Discussion and then show oldest or newest comment first), but look here. I have “show oldest” first as default.

When I switch from a regular template to one from Cloud Templates this happens:

http://swetennis.se/kalendern/vecka-29-flera-svenskar-gor-comeback/

Suddenly it shows the newest comments first!

Post count: 20685

Sorry for misunderstanding. Indeed that seems to happen when a cloud template is used, on a default post template it works.

I will add this on our list and it will be fixed. Sorry for the inconvenience. If this is required for you, please consider using default post templates for the moment.

Post count: 209

Hello Simion,
the problem also occures on default post templates. The comment-sorting is completely messed up, no matter what you enter in the Discussion-settings.
Is there a hack to fix this asap?

Post count: 27

By the way, please support the Disqus Plugin to show the comment count. Almost no one uses this default comment template.

PLEASE! 😀

Post count: 209

@decovca
Pleased don’t crosspost other bugs. The default template is essential and has to work. The use of Disqus is very problematic because of GDPR.

Post count: 20685

@be2name I tested first with a cloud template, in wordpress the older setting is selected
https://www.screencast.com/t/oO42Q2QC
Cloud template not working – https://www.screencast.com/t/LgkN6kklghk6
Default template – https://www.screencast.com/t/scFZgP34r

So with a default template it seems to work, as far as I can see.

As for the Disqus comments in cloud post templates, I have already added it on our list, so it will be considered in the future.

Post count: 209

Hello Simion,
yes, checked and rechecked: default seem to work, cloud not. When I change the sort order, the cloud seems to show the comments just the other way round.

Is there a way to quickly change this in the code, because we use a lot of cloud templates and can’t switch them to default.

Post count: 20685

You could make a small addition in a file of the cloud plugin. Add this code in this file
https://www.screencast.com/t/kzn7DmfwEi

'reverse_top_level' => true

That should order the comments by oldest, you could give it a try.

Post count: 209

Works! Thank you, Simion!

Viewing 11 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic.