• Is there any way to remove specific tags from posts?

    I have certain tags that I remove manually all the time, and it’s really time consuming… I also have to remove all numerical tags…

    so having this option would be very helpful for many of us… let’s say if user puts “-tagName” means to remove that tag… or an option “remove tags from this list” with option “remove all numerical”

    cheers!

    https://www.ads-software.com/extend/plugins/automatic-post-tagger/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Devtard

    (@devtard)

    I am not sure if I understand what exactly do you mean. Do you want to remove existing tags? Why not just use the option “Replace old tags with newly generated tags”?

    Thread Starter 3×7

    (@3x7)

    Well I need most of the tags that are created before… Some sources create good tags, but I still need to remove generated from other sources…

    I can try to achieve this on my own if you are willing to help me out?

    but still.. it would be a good option…

    Cheers!

    Plugin Author Devtard

    (@devtard)

    I don’t want to implement any extra functions that are not directly related to Automatic Post Tagger, sorry. Although this would be a nice feature for my other (still imaginary) plugin which will work with taxonomies in general.

    Why don’t you “physically” delete the unwanted tags? You don’t have to remove them manually from each post, you can delete them from this page: /wp-admin/edit-tags.php. These tags won’t appear in any of your posts anymore if you do this.

    Thread Starter 3×7

    (@3x7)

    I import posts, and I get “unwanted” tag over and over again… specially numerical ones(prices)…

    I’ll see if I can dig it out somewhere… so far no luck…

    Thanks.

    Plugin Author Devtard

    (@devtard)

    Well, if the tag has a specific format I guess that it could removed after importing a post by using a regular expression. There might be a WP hook that would trigger the tag-removing function or a cron could be used if posts are not being imported via the WP import tool.

    If you are not afraid of PHP and you also want to learn something about plugin creation, I encourage you to visit these pages:

    https://codex.www.ads-software.com/Writing_a_Plugin
    https://codex.www.ads-software.com/Plugin_API/Action_Reference/save_post (or https://codex.www.ads-software.com/Category:WP-Cron_Functions)
    https://www.php.net/manual/en/function.preg-match.php

    Thread Starter 3×7

    (@3x7)

    Thanks again and again… right now I’m in the middle of hacking your plugin to do categories :))

    Will check the links you provided definitely!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘What about remove specific tags?’ is closed to new replies.