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

I already checked out this page; http://codex.wordpress.org/Function_Reference/wp_delete_term

It does not say what happens to the posts that may have been associated with this action. Hence my question;

So, what happens to them?

share|improve this question
up vote 1 down vote accepted

You can use below to assign all posts to another term during deletion mentioned on same page.. "The $args 'force_default' will force the term supplied as default to be assigned even if the object was not going to be termless."

Other wise if there was only one term attached with post, post becomes term less.

share|improve this answer

It does not say what happens to the posts because Nothing happens to the posts, Only the term and the relation between the post to the term are deleted.

share|improve this answer
That's what I meant Bainternet. But anyway, Rajeev's force_default point does the job for me. – Average Joe Apr 23 '12 at 11:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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