Category Count Issue A Closer Look
I've been taken a closer look at the category count issue this morning and here is some new information on it based on what I have found
Ok The Category Count Issue appears from what I have seen in 2 places.when
1. You the admin deletes a post inside the admin area, then goes to homepage and the category number is still seen yet the ad is not visible
2. You the user, pauses an ad, you then go to homepage and the number is still beside the category yet the ad is not visible.
At first I thought it was a cache issue.I had no cache plugins loaded, so i cleared my browser i even loaded up a new browser and viewed the site. still the numbers were there
But here is some more information on what I think is happening here.
For number 1. When you the admin delete. The problem lies in that Wordpress has a safe feature in place that does not delete it completely from the database it places it in the trash, a bit like your recylce bin. The moment you go to the trash and hit permanent delete and then go view the homepage. The category number is gone. But if you dont do the permanent delete and only trash an ad, you wont see the ad on the homepage but you will see the number.
So the developers are going to need to change the code so that the moment the Admin hits Trash beside an adpost the ad and the number disappears from the homepage, not just the ad
As it stands for number 1 issue. When you the admin hits trash beside an ad post it will go but you will end up with ghost category number until you hit permenant delete. Now the reason i think this is a theme issue is because if I take a regular wordpress blog and i make a post and it shows in the category with a category counter plugin the moment I just trash it. It disappears from the blog and from the category counter ( even though its not been completely permanetly deleted from the trash ) So this tells me that in a wordpress default theme things are fine but the moment classipress is loaded it overrides and the classipress category counter is remaining to show the entry of an ad even after the admin has hit trash. Really all it should require is for the admin to hit Trash and all entries should be gone from the site and category. Now if I wish to bring it back I just untrash it, but then and only then should it reappear. The way things are at the moment its doing half the job
Ok for number 2 the pausing of ads and still showing. That is pretty much the same as the delete from admin. In pausing the ad its basically trashing it same as the admin and thus ends up with the same result. Ad is gone from sight but category counter is saying its there, the moment you untrash " un pause " its back again