[wp-hackers] how to unassing category from the post?

Konrad Karpieszuk kkarpieszuk at gmail.com
Fri Mar 25 13:27:22 UTC 2011


suppose that post with ID 4 belongs to category with ID 12, but also
belongs to many other categories.

is some easy function in wp core to unassign post from particular one category?

now in my plugin i am thinking about using wpdb class to update some
term relationship but i am feeling that this is not the best way

(en) regards / (pl) pozdrawiam
Konrad Karpieszuk

More information about the wp-hackers mailing list