Support

Account

Home Forums General Issues How to copy the value of a field from another group and paste it to another?

Helping

How to copy the value of a field from another group and paste it to another?

  • I have a text field from group One called textfield1 and I want the value of it to be copied to group Two’s textfield2.

    Basically I want the value of textfield1 to be transferred to textfield2. The simplest way is to copy and paste them one by one. It’s easy if you have 10 posts but I have over 300. Is there an automated way of doing it?

  • Nothing easy.

    You need to create a filter that runs once that gets all of the posts and then get the field and use update_field() to update the value for each post.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.