Inserting PHP inside HTML code, ie. inside < ... value="PHP CODE HERE" /> - workaround? -


i have custom fields defined on wordpress in have entered episode number each post have written. want use value in form, need keep form code same , call using shortcode in each post since there way many posts edit manually.

i have tried

<input type="hidden" name="episode" value="<?php the_meta(); ?>"/> 

to set value of episode inside form value specific post, php code still able seen on page source code not going through. there workaround?

you have echo response.

<input type="hidden" name="episode" value="<?php echo the_meta(); ?>"/> 

of course can use print functions.


Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -