首页 > 解决方案 > ACF 表单未在移动设备上重定向。在桌面上工作正常

问题描述

我有一个前端 acf 表单,它正在生成一个新的自定义帖子。

当我在桌面上提交表单时,它工作正常。它创建帖子并重定向到新帖子。

但是,当我在移动设备上使用它时,在 Chrome、Firefox 和 Safari 上进行了测试。表单会创建新帖子,但不会重定向到 URL。相反,纺车卡住了,页面不会重定向到任何地方。

我正在使用的代码是;

<!--ACF Frontend form-->
                <?php 

                     acf_form(array(
                         'post_id' => 'new_post',
                         'field_groups' => array(220), // Used ID of the field groups here.
                         'post_title' => false, // This will show the title filed
                         'post_content' => false, // This will show the content field
                         'form' => true,
                         'new_post' => array(
                             'post_type' => 'setup',
                             'post_status' => 'publish',
                         ),
                         'return' => '%post_url%',
                         'submit_value' => 'Submit Setup',
                     ));

                 ?>

标签: wordpressformsfrontendadvanced-custom-fieldsacfpro

解决方案


推荐阅读