1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Plugin auto tags from filename

Discussion in 'WordPress' started by vaggos, Jan 25, 2014.

  1. #1
    Is there a plugin that will auto add tags using the filename of the uploaded image?

    For example if the filename that I will attach to the post is named blue_little_flowers.jpg it will extract blue,little,flowers and them as tags.
     
    vaggos, Jan 25, 2014 IP
  2. TIEro

    TIEro Active Member

    Messages:
    741
    Likes Received:
    177
    Best Answers:
    5
    Trophy Points:
    70
    #2
    I've never seen one, but it doesn't sound too difficult to build - you'd just need to take the filename, run a preg_replace on it to strip out the spaces, %20s, underscores, hyphens and stuff, then create post_meta for the attachment.
     
    TIEro, Jan 25, 2014 IP
  3. Devtard

    Devtard Notable Member

    Messages:
    850
    Likes Received:
    133
    Best Answers:
    4
    Trophy Points:
    220
    #3
    You can do it with my plugin: https://wordpress.org/plugins/automatic-post-tagger/

    However, regular expressions aren't supported yet so you'll have to either modify it or manually specify all tags you want to add with appropriate related words, for example: "blue" => "blue_,_blue"
     
    Devtard, Jan 25, 2014 IP
  4. Halil D.

    Halil D. Member

    Messages:
    34
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    48
    #4
    try this one http://wordpress.org/plugins/simple-tags/
     
    Halil D., Jan 27, 2014 IP
    srobona likes this.