Excuse my English, I will try to be as clear as possible
I have tried to develop a routine to create form pages, something like a creator of forms systems.
Thus, the first need that I have identified is to have a standard form with the required fields to position a new page.
Thus, the first need that I have identified is to have a standard form with the required fields to position a new page
I created a page template and assigns a form with fields (page_customtype, page_idform, page_idpost)
Theoretically, these are the necessary information to position a form on a page on the front end
But when I run the code below, the form is not displayed
$idform = get_field('page_idform');
if ($idform!=null){
acf_form( array(
'post_id' => 'new_post_emp',
'field_groups' => array( $idform ),
'return' => add_query_arg( 'updated', 'true', "#" ),
));
}
I imagine that this takes place because the order of script execution, but we would have to get around this?