Insert some PHP inside a field value
-
<input type=”text” name=”text-420″ value=”<?php the_ID(); ?>” size=”40″ class=”wpcf7-form-control wpcf7-text” aria-invalid=”false”>
I have this code above, but the output value is literally <?php the_ID(); ?> instead of a set of numbers. If I write this code in a php file, I get a set of numbers (which is what I want), but when using the wordpress CF7 interface, it sees it as plain text.
Any way I can solve this? Hope I was clear enough.Thx!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Insert some PHP inside a field value’ is closed to new replies.