unable to update all the post’s contents/titles in WPGLOBUS fields
-
Hello,
I am trying to update all the wordpress post title and its content for different languages.
I tried to track the field value of the title but all the title field have the same id=”title” which mean if I use the following wp_update_post function, it will have only one same title.// Update post 37
$my_post = array(
‘ID’ => 37,
‘post_title’ => ‘This is the post title.’,
‘post_content’ => ‘This is the updated content.’,
);// Update the post into the database
wp_update_post( $my_post );I tried to track the content field like this:
and all of the post title have the same ID:
kindly help me how to update the post content and title for different language without manually thing.
- The topic ‘unable to update all the post’s contents/titles in WPGLOBUS fields’ is closed to new replies.