This works entirely in the previous version of WordPress, is a separate site. I have a custom field that is called Flash on many wp pages but it remains the default on "The results are empty when printed". Any idea why this will not work?
& lt ;? Php if (function_exists ('get_post_custom_values')) {$ mykey_values = get_post_custom_values ('Flash'); If (count ($ mykey_values)> 0) {foreach ($ mykey_values $ key = & gt; $ value) {echo "$ value"; }} And {// the result is empty empty ("mainpage.swf"); }} And {// print if the function does not exist echo ("mainpage.swf"); }? & Gt;Hello not really sure why he is not working (unless You are sure posts have custom fields with 'Flash' values). Either way, try the following, I'm sure the following will work.
& lt ;? Php $ custom_fields = get_post_custom (); $ My_custom_field = $ custom_fields ['Flash']; Forex currency ($ my_custom_field $ key = & gt; $ value as) $ Key Echo "= & Gt;" $ Value "& lt; br / & gt;"; ? & Gt;
Comments
Post a Comment