Page is a not externally linkable
- Code, Content, and Presentation
-- WordPress
---- Wordpress custom fields from posts on a Page


londrum - 1:50 pm on Nov 29, 2010 (gmt 0)


what are you trying to do. do you just want

var blah = new GlatLng(0.0000, 1.1111);

to print to the screen, or are you actually trying to run that line as code?

if you're trying to run it as actual code, then try

while ( have_posts() ) : the_post();

$var = get_post_meta($post->ID, "var", true);
$lat = get_post_meta($post->ID, "lat", true);
$lng = get_post_meta($post->ID, "lng", true);

$$var = new GlatLng($lat, $lng);

endwhile;


Thread source:: http://www.webmasterworld.com/wordpress/4314142.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com