Reply count off by one after deleting a reply

Jamal Reed Jamal Reed hace 2 semanas Resuelto

Steps to reproduce: create a topic with three replies, delete one. The space listing still shows three replies on the topic.

It corrects itself after running wp jetonomy recount, so it looks like the denormalized counter isn't decremented on delete. WordPress 6.9, single site.

13

For what it is worth, the same approach works with the PMPro adapter — the membership side is identical from here.

We ran into the same situation last quarter. What worked for us was starting small and only adding complexity when a real need showed up.

Strong agree. Good defaults beat a wall of toggles every single time.

Tried this on a staging copy first and it behaved exactly as described. Confident enough to roll it to production now.

Tried this on a staging copy first and it behaved exactly as described. Confident enough to roll it to production now.

For what it is worth, the same approach works with the PMPro adapter — the membership side is identical from here.

Strong agree. Good defaults beat a wall of toggles every single time.

Could you say more about how you measured the result? I want to try this but I am not sure what success would look like.

Thanks for writing this up. Bookmarking it — the kind of thing I will want to reference again in a month.

We ran into the same situation last quarter. What worked for us was starting small and only adding complexity when a real need showed up.