Support

Account

Home Forums General Issues Edit relationship data

Helping

Edit relationship data

  • Afternoon guys,

    I’m wondering if anyone has any idea how to fill fields based on a post object / relationship selection.
    That is to say what I want is a post object / relationship field that I could select my story -> that would then pre-fill the title and excerpt from the selected post so that I could make changes if necessary.

    The idea is that I can collate a number of posts in one without having to copy/paste links, title, experts etc. and tailor the content at this stage if needs be.

    Thanks in advance!

  • Hi @s95g,

    Thanks for the post.

    I would recommend you create some logic to check the selected option on the field. You can then extract the post title and content from the $post object

    You can then use the acf/load_field filter to update the custom fields with the values obtained in the first step.

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

The topic ‘Edit relationship data’ is closed to new replies.