Creating tags via API

Hi @James:

If you have the post ID of your newly created post (the $created variable from your question) you use the wp_set_object_terms() function, for example:

wp_add_post_tags($created,'My First Tag');
wp_add_post_tags($created,'My Second Tag');
wp_add_post_tags($created,'My Third Tag');

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)