大网数据广告活动
网站运营与故障问答

Passing page/post title as parameter in Gravity Forms

· 52CE 我爱测

I'm looking for way I can pass the page/post title as a parameter from Gravity Form 1 to another Gravity form. I'm able to pass parameters fine, but I'm looking to be able to pass the &post={post title:2} and have it grab the pos…

问题原文

原帖链接 · Trebor · CC BY-SA 4.0

I'm looking for way I can pass the page/post title as a parameter from Gravity Form 1 to another Gravity form. I'm able to pass parameters fine, but I'm looking to be able to pass the &post={post title:2} and have it grab the post/page title without having to create a custom form for every page or post. Is there a default parameter/field name that will do this?

已采纳解答

原帖链接 · Trebor · CC BY-SA 4.0

I found the following solution to my problem and it was actually very easy to do once I found the field. https://www.wpgarage.com/plugins/dynamic-page-url-gravity-forms-wordpress/ Gravity forms has built in page/url parameters you can populate hidden fields with. Once I added the hidden field with the url, I was able to pass it to another hidden field on my second form via a querystring.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-02-23)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。