[wp-hackers] Importing massive amount of tags and linking them to objects

DD32 wordpress at dd32.id.au
Thu Feb 5 09:20:45 GMT 2009

Looks like you'll want to look into:
wp_set_post_tags($post_id, $tags = '', $append = false);  (post.php,
line 1717 or there abouts)

Just adding the tag names there should be fine, but you'll have to
check the function..  WP will automatically create the term i believe

2009/2/5 Malaiac <malaiac at gmail.com>:
> 2009/2/5 DD32 <wordpress at dd32.id.au>:
>> The question is:
>> Where are the tags coming from?
>> Are all 2000 tags being applied to every post?
>> You're most likely going to have to write a custom script if the latter.
> Custom script is no problem.
> Tags are in a php array (they come from a SQL table), with an (old) ID
> and a name
> Not all tags are applied to all posts.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list