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 🙂
Thread Starter
ChrisL
(@chrslcy)
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
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 🙂