WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I'm currently redesigning a cartoon site that has 1200+ posts, divided into about 62 different categories. Some categories have 2 posts in them, other categories have 50, 100, 200+.

Now for every category, I want to add a tag to all the posts in that category.

Does anybody know if there is a SQL query to automatically add a specific tag to all the posts in a category?

Any help much appreciated!

share|improve this question

marked as duplicate by toscho May 15 '13 at 11:00

This question was marked as an exact duplicate of an existing question.

There is a plugin called Simple Tags which will allow you to bulk add tags on existing posts.

It might do the job you need

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.