I try since a view hours a working script but get errors so far... a jquery script which should get a post meta from php
working one:
descrip= "<\?php $my_meta =get_post_meta(3713, 'HourEnd',true );echo $my_meta; \?>";
console.log(descrip);
not working:
postid=3713;
descrip= "<\?php $my_meta =get_post_meta("+postid+", 'HourEnd',true );echo $my_meta; \?>";
console.log(descrip);
dont know how to send a variable from jquery to a php insert thanks thomas
I try since a view hours a working script but get errors so far... a jquery script which should get a post meta from php
working one:
descrip= "<\?php $my_meta =get_post_meta(3713, 'HourEnd',true );echo $my_meta; \?>";
console.log(descrip);
not working:
postid=3713;
descrip= "<\?php $my_meta =get_post_meta("+postid+", 'HourEnd',true );echo $my_meta; \?>";
console.log(descrip);
dont know how to send a variable from jquery to a php insert thanks thomas
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.