Support » Plugin: Smart Tag Insert » When does this plugin run?

  • Hi Stefano,

    I’ve installed the plugin, added a tag to the STI settings called ‘test’. Then created a post with the word ‘test’ in the content, but the post did not get tagged. It gets tagged when I press the ‘Rebuild post tag’ buttons, but not when I create or update a post.

    Does this plugin run automatically? If so, when?

    Thanks!

    Chris

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ste_95

    (@ste_95)

    Hi there,
    no, it never runs automatically (unless you use the bulk-tagging feature you mentioned). You are supposed to do it for every new post, using the apt box in the post edit page 🙂

    Hi Stefano,

    Thanks for your prompt reply.

    That’s a shame. I was trying to find an alternative to the popular Automatic Post Tagger, which appears to have been abandoned.

    I manage over forty sites for clients and each site has multiple editors so I’m really looking for something I can set up and leave to run in the background.

    Is this a feature you’d consider adding to the plugin settings? And if not, can you suggest a save_post hook function that would run your plugin on a post when it’s created or updated?

    On a separate subject, do you think there’s anything you could do to your plugin listing text to get it to appear in the plugin search ‘automatic post tagger‘ and other related search terms. I don’t see your plugin appearing in many of the related searches I tried. You might get a lot more interest that way.

    Thanks again,

    Chris

    Plugin Author Ste_95

    (@ste_95)

    Is this a feature you’d consider adding to the plugin settings? And if not, can you suggest a save_post hook function that would run your plugin on a post when it’s created or updated?

    Something like this could go into a such function, if you can craft it properly 🙂

    global $sti_global_settings;
    $tags_relevances = STI_general_functions::get_tags_relevance( $sti_global_settings['plugin_settings']['tags_list'], $post->post_content );
    $to_add = array_slice( $tags_relevances, 0, $sti_global_settings['plugin_settings']['default_tags_number'] );
    
    foreach( $to_add as $tag => $relevance ) 
    	if( $relevance == 0 ) unset( $to_add[$tag] ); //don't add tags with relevance == 0
        		
        	wp_set_post_tags( $single, array_keys( $to_add ), false );

    On a separate subject, do you think there’s anything you could do to your plugin listing text to get it to appear in the plugin search ‘automatic post tagger‘ and other related search terms. I don’t see your plugin appearing in many of the related searches I tried. You might get a lot more interest that way.

    There is probably some way, I’ll look into it when I’ve got some time 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.