I made a grave error. I delete many TAGs from the database of my blog.
Many TAGs were orphaned. And yet, unfortunately, many posts have anchor words that link to deleted tags.
That is, several links are broken and returning "Error 404 not found".
This is affecting the indexing of my site.
I would like help!
Do I need an SQL code to insert the orphaned TAGs?
The code states:
check which tags exist in the posts and do not exist in the TAG table (database).
create (insert) the tags in the database table by filling in the fields: name and slug.
About the table structure:
The version of wordpress installed is: 5.2.1
Can someone help me ?
I await a return.