M
M
Muxammadislom Eshonqulov2021-08-06 14:21:17
WordPress
Muxammadislom Eshonqulov, 2021-08-06 14:21:17

Create child entry in parent entry via acf_form?

Good time.
I wanted to add a child indicating a guardian entry through the acf plugin.
Looked found only adding of record and creation of child record was not found.
Who knows tell me how to create a child record.

acf_form(array(
    'post_id'		=> 'new_post',
    'post_title'	=> true,
    'post_content'	=> true,
    'new_post'		=> array(
      'post_type'		=> 'event',
      'post_status'	=> 'publish'
    )
));

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question