Applying Category to Posts Where Page Title Matches Regex

Question

I have a whole bunch of posts that I need to add a category to (too many to do via Bulk Actions). They all follow a predictable post title naming structure.

I found wp_set_post_categories, but not sure how to use it to assign a category to all posts based on the title text pattern… It seems to be made for updating individual posts?

Thanks

0
, , , Drewdavid 2 years 2019-11-20T13:07:57-05:00 0 Answers 54 views 0

Leave an answer

Browse
Browse