Reply count off by one after deleting a reply

[deleted] 2 months ago Resolved

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.

31
[deleted] OP

Great point. I had not considered the angle you raised in the second paragraph — it reframes the whole thing for me.

[deleted] OP

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

[deleted] OP

One caveat for larger communities: keep an eye on the indexes. At a few thousand rows the difference is night and day.

Click Any Link Below To Find Out More

This will close in 0 seconds