• I got it to work by trimming down Jonathan Foucher’s Auto Tag plug-in, but unfortunately I can’t delete the tag after it’s been added. The tag is added when you click “Publish”. But if you delete the tag and then click “Update Post”, the tag returns. I want to give the option to delete the tag at a later time. So I need it to ONLY add the tag to a NEW post and not a post being updated.

    Here’s my code as it stands now …

    <?php
    function autotag($postid){
    global $wp_filter;
    $post=get_post($postid, ARRAY_A);
    remove_action('wp_insert_post','autotag');
    wp_set_post_tags( $postid,'open', true );
    }
    add_action('wp_insert_post','autotag',1);
    ?>

    Thanks in advance!

  • The topic ‘Need a WordPress plug-in that can add a tag automatically.’ is closed to new replies.