WordPress.org

Plugin Reviews

Auto Add Tags

Find existing tags in your new post content. If found, automatically add those tags to the post whenever you save the post.

6 reviews
Average Rating
5 out of 5 stars
You are currently viewing the reviews that provided a rating of 5 stars. Click here to see all reviews.
Mod for deleting unapropriate tag + multi word tags
By ,

Hello, very nice work, simple and efficient, but it lacked the ability to delete some of the tags... so i added two lines in the dk_save_post() function, you can add it in a later release :)

function dk_save_post(){
  $tags = get_tags( array('hide_empty' => false) );
  $post_id = get_the_ID();
  $post_content = get_post($post_id)->post_content;
  $post_title = get_post($post_id)->post_title;
  $post_status = get_post_status();
  if($post_status == 'draft'){
    $d = strtolower($post_title.' '.$post_content);
    $options = get_option('aat_options');
    $whole = $options['whole'];
    if ($whole=='checked') {
      $x = array(',','.','?','"','\'');
      $dummy = str_ireplace($x,'',$d);
      $m = explode(' ',$dummy);
      if ($tags) {
        foreach ( $tags as $tag ) {
          $composed = strpos($tag->name, ' ');
          if($composed === false){ // simple  tag
            foreach($m as $n) {
              if (strtolower($tag->name)==$n) wp_set_post_tags( $post_id, $tag->name, true );
            }
          }else{ // multi words tag
            if ( strpos($d, strtolower($tag->name))) wp_set_post_tags( $post_id, $tag->name, true );
          }
        }
      }
    } else {
      if ($tags) {
        foreach ( $tags as $tag ) {
          if ( strpos($d, strtolower($tag->name))) wp_set_post_tags( $post_id, $tag->name, true );
        }
      }
    }
  }
}
that is good idea please more develpment .auto tags are very usefull
By , for WP 3.9.2

tankyou very much

5 stars
By ,

It work perfectly! Thanks

Works like a charm!
By , for WP 3.9

I'm not sure why it took 4 previous installs of other auto tag ads, but this one works!

I'm with dhoffmann, I would dearly love an option to exclude certain words. But it ads everything appropriate and some that I would have never caught!

works
By , for WP 3.8

works fine. I wolud like to get a function to exclude some tags

Simple, elegant and it works!
By ,

After you hit save on a post just sit back and watch your own tags get auto-added.
Simply coded, great choice of functionality.
This will save so much time while keeping me in complete control over my own tags.
Thanks!

You must log in to submit a review. You can also log in or register using the form near the top of this page.