wordpress - 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',
));
?>
解决方案
推荐阅读
- node.js - 如何在 typescript 中获取我的个人资料的 aws 区域
- android - 下载的文件被拒绝科尔多瓦
- jmeter - JMeter:尽管用户负载增加,但吞吐量相同的可能原因是什么
- azure-devops - 在自定义 Azure DevOps 任务/扩展中发送对象数组
- python - Python Socket 没有接收到发送给它的消息
- python - 如何更快地迭代二维的 Python numpy.ndarray
- python-3.x - numba-TypingError:在 nopython 模式管道中失败(步骤:nopython 前端)非精确类型 pyobject
- module - Rust 中的跨模块函数调用
- c# - .NET Core 洋葱架构中的依赖注入
- docker - 如何通过远程 docker 的代码设置 repoLayoutRef