Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 512573

Putting page title in a hidden field?

$
0
0

Replies: 0

Hey guys! Great plugin 🙂

I’d like to know how I can set a hidden input in the form section or get a field in the mail section with the title of the page.

My idea is to put the same contact form in various pages, but I want to know from which page is being sent the email. In php I would create a hidden input with a different value in each page.

All I’ve seen so far in the faq is the special meta tags “[_post_title]” but it does not work, apparently because it’s not a post but a page where I am putting the contact form.

The way I am embedding the contact form in my page is thru a template in my theme with the php code do_shortcode(‘[contact form 7 tag bla bla bla]’)

Thanks!


Viewing all articles
Browse latest Browse all 512573

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>