I'm wondering if it's possible to add tags into articles not using the back-office, but with php ?
Thanks for your reply !
I'm wondering if it's possible to add tags into articles not using the back-office, but with php ?
Thanks for your reply !
wp_set_post_tags will do the trick
wp_set_post_tags( 42, 'meaning,life', true );
see https://codex.wordpress.org/Function_Reference/wp_set_post_tags Examples section.