I have a readonly input field in my contact form created using contact form 7. I need to set the page title (<?php the_title() ?>
) as the value on that readonly input.
My readonly input as follows.
[text* selected-package readonly id:selectedPackage class:form-control placeholder akismet:author "Package"]
I tried using _post_title
but it only adding the value attribute to the input field, but it is not showing the value.
How can I add value attribute to this?
Thanks