Programmatically Saving Post and Post Meta as Though I Was Clicking ‘Update’ Myself.

[ad_1]

I have an issue where I need to mass update 800 CPTs. If I go in individually and save a post, it will create a map place with latitude/longtitude values. But if I try to run a command from WP CLI to trigger an update the map values are not created.

I'm using Metabox for a map field. And as I said if take my basic ass human self and press 'update' the post updates with my values. Programmatically or via CLI that doesn't happen.

Is there a specific function or API call I can run to try this? I've run the gamut of posts on Stack and threw it at ChatGPT and the other one and goose eggs. I'm feeling like a big loser as non-winners go. Please help. Thanks, fellow pressers of Word.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer