Membership is FREE – with unlimited access to all features, tools, and discussions. Premium accounts get benefits like banner ads and newsletter exposure. ✅ Signature links are now free for all. 🚫 No AI-generated (LLM) posts allowed. Share your own thoughts and experience — accounts may be terminated for violations.

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

Status
Not open for further replies.

sitemaker

Level 6
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.

Who has viewed this thread (Total: 1) View details

Who has watched this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Upcoming events

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom