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


geeklike - 12:17 pm on Nov 29, 2010 (gmt 0)


Thanks, londrum, it's posting the entries now. However, I still need it to take the custom values from each of the four posts, and make individual variables, like this:

while ( have_posts() ) : the_post();
echo "var ";
echo get_post_meta($post->ID, "var", true);
echo " = new GlatLng(";
echo get_post_meta($post->ID, "lat", true);
echo ",";
echo get_post_meta($post->ID, "lng", true);
echo ");";
endwhile;


Only, this doesn't return anything. Can you help with this?


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