Answer the question
In order to leave comments, you need to log in
Creating a form in Custom Field Suite?
Hello everyone, I'm trying to create a frontend form for adding records to the post type company, but nothing happens, there is a detailed description of the form here. Help me to understand.
Thank you.
Answer the question
In order to leave comments, you need to log in
figured it out myself, there the token was the current session, it did not need to be decrypted
Solved the problem
myself
<?php echo CFS()->form(
array(
'post_id' => false,
'post_type' => 'company',
'post_title' => 'The Title',
'post_content' => false,
'field_groups' => array('152'),
'confirmation_url' => '/successful', // redirect URL
'submit_label' => 'Submit',
));
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question