[wp-hackers] how to append some tag to post automatically, when it is published?

Konrad Karpieszuk kkarpieszuk at gmail.com
Thu Sep 10 13:17:54 UTC 2009


hi :)
Sometimes on my blog someone will publish post with Custom field name =
"video" and value = [url to video at YT]

I want that thos post will have added automatically blog tag 'video'

How to do this?

I just know that i need to add action hook for 'publish_post'. but what
should be in function? does wp has some function to add tag to post (i
belive yes, but i don't know which one)?

-- 
(en) regards / (pl) pozdrawiam
Konrad Karpieszuk
http://konradjestwrwandzie.wordpress.com/


More information about the wp-hackers mailing list