• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Offers Need script or SQL to add tags to WP posts based on keywords found in content

Status
Not open for further replies.

sitemaker

New Member
Legacy Exclusive Member
Joined
Feb 21, 2006
Messages
621
Reaction score
20
I need the SQL (or a script) that would go through all the posts in a WP database, and add tags based on words in the post.

For example, if I have 11,000 recipes posted, well categorized but with no tags, and I want to add tags based on ingredients.

So I'd scan for posts containing "cardomom" and add that tag. Then scan for "rosewater" and add that tag. Then "honey" etc.

What would really be great is if the script would accept a whole bunch of keywords and do them all, so I wouldn't have to run it over and over for every ingredient that I can think of.

Or perhaps scan and build a complete keywords list; from which I'd selct which to make tags for.

Is there anything like that?

Thanks.
 
Status
Not open for further replies.
Back
Top Bottom