• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Delete all tags where tags_count = n

skypeleft

Active member
Aug 10, 2019
411
77
28
Hi guys, I want to delete all tags where count = 1, because my database much more tags record in my database, phpadmin
Can you give me a SQL query to do that?. I don't see a tag table... my WordPress website
Thanks.
 
I strongly recommend you don't try to approach this the way you are thinking. Terms and taxonomy in WordPress could be relatively complex and you could end up creating a bunch of issues for yourself by directly trying to use SQL for this.
 
Direct SQL queries are notorious for leaving behind orphaned artifacts when used for stuff like this.
 
While I don't have a solution for you exactly, I suggest you look into WordPress hooks and filters (or those of WooCommerce if you're using it) for this purpose instead.
 
I have this exact issue in my to do list for one WordPress website.
 
I have this exact issue in my to do list for one WordPress website.

When I get to it and fix the problem, I will share the solution here for you and anyone else who is interested. But this might take a while.
 
 
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock