Created
August 9, 2011 19:11
-
-
Save sevenspark/1134910 to your computer and use it in GitHub Desktop.
CF7 DTX Manual Link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is your CF7 form tag, which retrieves the GET var 'payload' | |
[dynamictext my_payload "CF7_GET key='payload'"] | |
//This goes into the message body, or any CF7 field | |
[my_payload] | |
//See http://sevenspark.com/code/how-to-create-a-dynamic-wordpress-contact-form for additional info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- This creates a link that passes the current post title as a GET variable named 'payload' | |
You can place whatever string value you want in urlencode() to pass to CF7 DTX --> | |
<?php global $post; ?> | |
<a href="http://mysite.com/contact?payload=<?php echo urlencode(get_the_title($post->ID)); ?>" rel="nofollow">Contact Us</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment