Add WP tags to pages in phpmyadmin

Hi,

I have a lot of pages and I’d like to add the same tag to each of them. To do it manually would be a nightmare so I’m looking for some MySQL query that could make it easier.

I managed to find my tag in the database under term_id, but I have no idea how to assign this tag to my pages.

Any help is appreaciated.

go to stackoverflow , it’s a shop forum

You can create a plugin/custom function/whatever and use wp_set_post_tags():

https://codex.wordpress.org/Function_Reference/wp_set_post_tags