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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -