Can some kindly update this plug in to work with
PHP Version: 7.4
Also, does anyone know of another plug in that does the same functions as this one?
This plugin automatically converts keywords in a WordPress post title to tags, while ignoring a user-editable list of words.
]]>Behaving strangly when title contents Turkish characters for example ?ü???? ?ü????.
]]>Dear readers and users:
I’ve experienced at least one instance where, after saving the title of a post, the tags appear not to have been created. After a bit of research, I’ve discovered that the tags DO get created, but that Gutenberg has had some issues with the save_* action hooks and timing of refreshes with the new, page reload-free interface.
If you see an issue, please note it here and know that we are working to resolve these issues! Thanks again!!
]]>Coming across the case of a keyword with an apostrophe, “John’s” gets tagged as “johns”. Is this something that has been talked about before? Where if there is the apostrophe present, then “John’s” gets tagged “John”
]]>Is there a way to identify common combinations of words that occur in titles, maybe a whitelist? If -John Smith- is a common combination, then tag for “John Smith” instead of/along with “John”, “Smith”
]]>Title to Terms Ultimate
A great plug-in, thank you for taking the time to make it available and updated.
Seems to be working great for Blog posts.
But on a WooCommerce product it does not work. Could you please add this capability. Adding this feature to a retail website is most helpful.
]]>Avert your eyes.
]]>We’ve been using the Title-to-tags original plugin for many years now on multiple websites. Recently the plugin requested auto update, though no update was really needed. The plugin has been working with no problems for years.
Title-to-tags is NOT doing what is supposed to after the update – namely saving the title as tags. What happened after the plugin/title-to-tags URL takeover? Will this be corrected so we can use the great title-to-tags again?
]]>Title to Tags has become Title to Terms Ultimate!
Title to Tags has been completely rebuilt from the ground, up. The code is cleaner, more efficient and compliant with WordPress standards. However, to match those standards, I had to change the names of most of the PHP files. The result is that the plugin will get automatically turned off when updated, because the original plugin file technically no longer exists.
Not to worry! All you have to do is go back to Dashboard -> Plugins and turn Title to Terms Ultimate back on. Also have a look at your writing settings to make sure the taxonomies you want are working.
]]>Hello, thanks for this great plugin! In my site I’ve a scenario where a plugin (cybersyn) get the article from other site’s feed and then, after a little interval (2 or 5 minutes), it publish on my site. “Titles to tag” seems to not working on this kind of post, it add tags only if I open and Update the article. I saw you wrote “Tags are added to the post when it is saved, whether as a draft, update or by publishing, but not when the post is autosaved.” but I’m looking for understand why isn’t working with auto posting.. can you help me to find a way to make it work? Thanks again, Alex
]]>Hi,
how to apply for woocommerce for products?
Thanks
]]>hello any updates for 4.x ?
2. question, any chances to do some trick to only make tags from a name before/after a sign for example “-“
i mean i got stuff titled like this:
Eublepharis macularius – Leopard gecko
i wanted to make a tag Eubleharis macularius
then make a tag Leopard gecko
i got around 800 care sheets, and i would like to automate to make this.
any chance to help with that?
Pawel
]]>first thanks for amazing plugin it work amazing on manual posting but with comes to auto posting or bulk upload it didnot working please help me how i can use this with bulk or how can i change all my posts title to tags
]]>HI,
Great plugin, but why does it assign tags when saving a draft? It should only assign them when publishing or updating.
Thank you
]]>I need a plugin or script which can add tags to the published posted. I had more than 17000 and can’t edit it by on by one,. Please can anybody help me in it.
After some codes change this plugin is working good in my UTF-8 blog. But I also want to add tags to those previous posts which are published
I just edited the code and found that my blog is working perfectly with Hindi utf-8 fonts. I Just “lowerNoPunc” removed from the title-to-tags/hn_title_to_tags.php file. Just copy and repalce the code of title-to-tags/hn_title_to_tags.php file with this code. It might also work for other utf-8 blog too.
]]><?php
/*
Plugin Name: Title to Tags
Plugin URI: https://holisticnetworking.net/plugins/2008/01/25/the-titles-to-tags-plugin/
Description: Creates tags for posts based on the post title on update or publish.
Version: 3.1
Author: Thomas J. Belknap
Author URI: https://holisticnetworking.net
*//* Copyright 2006 Thomas J Belknap (email : [email protected])
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
new titleToTags;class titleToTags {
// Convert titles to tags on save:
function convert($post_id) {
$post = get_post(wp_is_post_revision($post_id));
// No title? No point in going any further:
if(isset($post->post_title)) :
$title = $post->post_title;
// Only run if there are not already tags assigned to the post:
if(!wp_get_post_tags($post_id)) :
// Setup our tag data:
$title_to_tags = array();
$stopwords = $this->getStopWords();
$title_werdz = explode(‘ ‘, $title);
foreach ($title_werdz as $werd) :
if(!in_array($werd, $stopwords) && !in_array($werd, $this->wp_stop)) :
$title_to_tags[] = $werd;
endif;
endforeach;
// Finally, add the tags to the post
wp_add_post_tags($post_id, $title_to_tags);
endif;
endif;
}// Display options page:
function addMenu() {
add_settings_field(
$id = ‘stop_words’,
$title = “Title to Tags ignored words”,
$callback = array( &$this, ‘stop_words’ ),
$page = ‘writing’
);
register_setting( $option_group = ‘writing’, $option_name = ‘stop_words’ );
}function stop_words() {
$values = get_option(‘stop_words’);
if(strlen($values) < 1) :
$values = implode(‘, ‘, $this->getStopWords());
endif;
echo ‘
<p>These words will be ignored by Title to Tags (punctuation removed). To reset, simply delete all values here and the default list will be restored.</p>
<textarea rows=”6″ cols=”100″ name=”stop_words” id=”stop_words”>’ . $values . ‘</textarea>
‘;
}private function getStopWords() {
// Do we have stopwords in the db?
$file = dirname(__FILE__).’/stopwords.txt’;
$stopwords = file_get_contents($file);
$verboten = explode(‘,’, $stopwords);
for($x = 0; $x < count($verboten); $x++) :
endfor;
update_option(‘hn_title_to_tags’, $verboten);
return $verboten;
}// List of WP-specific stop words (draft, etc)
private $wp_stop = array(‘draft’, ‘auto’);// Self-referencing constructor method method:
function titleToTags() {
$this->__construct();
}// Get out there and rock and roll the bones:
function __construct() {
add_action(‘save_post’, array(&$this, ‘convert’));
add_action(‘admin_menu’, array(&$this, ‘addMenu’));
}
}
?>
HI
I discoverd that since oct 7 2011 the tags aren’t generated anymore. I use a feed aggegator (wp-o-matic). Any idea what could’ve caused this?
]]>Again, GREAT plugin!
I’m looking for a solution to exclude all “numerical” tags, since I’m getting to much of them all the time.
Also option to exclude all “less than X characters” (for example to exclude all that have less than 3 characters) would be great!
]]>The most recent version of the plugin didn’t work for me, so here’s the hacky solution I used to get it working:
1. I started with the previous version of the plugin: 3.0.1, which I downloaded from the plugin page. This version worked for me, but the stopwords didn’t.
2. Then, I modified hn_title_to_tags.php. On lines 127 to 142, this was the old code:
private function getStopWords() {
// Do we have stopwords in the db?
if($stopwords = get_option('hn_title_to_tags')) :
return $stopwords;
// If not, use the default list:
else :
$file = dirname(__FILE__).'/stopwords.txt';
$stopwords = file_get_contents($file);
$verboten = explode(',', $stopwords);
for($x = 0; $x < count($verboten); $x++) :
$verboten[$x] = $this->lowerNoPunc($verboten[$x]);
endfor;
update_option('hn_title_to_tags', $verboten);
return $verboten;
endif;
}
And I replaced it with this code:
private function getStopWords() {
// Do we have stopwords in the db?
$file = dirname(__FILE__).'/stopwords.txt';
$stopwords = file_get_contents($file);
$verboten = explode(',', $stopwords);
for($x = 0; $x < count($verboten); $x++) :
$verboten[$x] = $this->lowerNoPunc($verboten[$x]);
endfor;
update_option('hn_title_to_tags', $verboten);
return $verboten;
}
That just took out the ability to add Stop Words from the settings area, since that wasn’t working.
3. I created a file called stopwords.text, and placed it in the title-to-tags plugin folder.
4. I pasted all the default stopwords from the options panel into it. If I need to add new stopwords, I’ll have to do it through this text file, but at least it’s working!
Hacky, but I love it.
]]>This addon is just cool. Useful for wp. I want to ask a question. May you code a “title 2 categories” addon? Like this…
]]>Hi,
Worked fine and now not working anymore…
I suppose that the plugin has some difficulties detecting update or publish, therefore I would like to run it in cron…
Is that possible?
if not, I believe it would be a great feature…
Thanks,
Mike
Hi,
I just tried your plugin which I see it very useful!
Good work, just let me give you some suggestions
What I would like to suggest is to create a list of tags that need to be replaced before they get inserted in posts.
Reason:
1. Often titles are written in plural but I want to have singular tags, and that would be a solution. To replace “items to item”
2. in my local language there are letters with caps, which are not allowd in tags, therefore I would replace “wordwith-?-es” to “wordwith-c”
Excluding the tags would also be great to exclude conjunctions and all the tags we don’t want to use in the posts “for, at” etc…
I believe this would be very helpful plugin for sorting by tags pursues if this gets achieved.
How?
1. Widget to show only specific tags
2. This plugin with those two options included
This way you can post without categories and still be able to “categorize” them thru tag filters.
Thanks,
Mike
Hello,
Shouldn’t the plugin associate the tags that he breaks down from the titles with that title’s post? What’s the point of creating the tags if they don’t become automatically associated with the post?
Thanks!
]]>Plugin doesn’t tags old posts when bulk update them. We have to go to editing page for every posts to tag old posts.
Please add bulk update as feature. Thank you.
]]>This plugin does not work with wordpress 3.2.1!
]]>When I try to activate Title to Tags, I get the prompt that it is causing/experiencing a fatal error. Scary, no?
I’m using 3.1.2, the latest, so I’m not sure what is happening … or not happening.
Thanks!
PS Here’s the error …
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /home/content/b/o/b/bobandanna/html/wp-content/plugins/title-to-tags/hn_title_to_tags.php on line 37
]]>This plugin doesn’t converts utf-8 unicode characters correctly. I’m using this plugin in a Tamil language website.
Re-producing the problem:
1.) Add this in title: ??????????????? ??????????????? ????????? ???????
2.) Publish post..
3.) Go to tags and check..
]]>Titles to tags is also populating tags onto pages, how do I make it stop?
I only want tags on posts!
]]>