0

I need a SQL query to add a custom field and his value to a wild number of posts (more than 5000 I think, this is an old news site).

Some post that I manually updated for SEO already have that custom field, but I can't do it for all posts.

Is there a query that can only add that custom field to posts that does not have it ?

Thanks.

1
  • How do we know which posts need the field adding? What's the problem you're trying to solve by doing this? – Tom J Nowell Sep 11 '20 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.