1 reputation
bio website tedikonda.com
location Washington, DC
age 29
visits member for 2 years, 2 months
seen Mar 2 '12 at 20:23

Feb
3
comment Getting a custom post's custom field based on another custom post's custom field select
Got it. So this works: $office_id = get_post_meta($leader->ID, 'leader_location', TRUE); ?> ['<?php echo get_post_meta($office_id, "latitude", true); ?>,<?php echo get_post_meta($office_id, "longitude", true); ?>
Feb
3
comment Getting a custom post's custom field based on another custom post's custom field select
Thanks Tom! However I'm afraid that doesn't work. That's part 1 where it displays the selection from the person custom post. The next step which is where I'm stuck in, is to compare that to the locations custom post, to spit out the latitude and longitude of that location based on the person post selection.
Feb
3
comment Getting a custom post's custom field based on another custom post's custom field select
Yes, exactly - I need to spit out the latitude/longitude value of the office based on the dropdown selected on the person post.
Feb
3
comment Getting a custom post's custom field based on another custom post's custom field select
Tried that without much luck.
Feb
3
comment Getting a custom post's custom field based on another custom post's custom field select
So there are two custom posts. The one for locations where you enter the location name, address, and the lat/long are geocoded automatically into invisible input boxes. The custom posts for people has a select box that's pulling the title/value(id in this case) of the locations. When running a loop for the people custom post in my template I'd like to spit out the latitude and longitude input boxes based on the select option selected in the people post.
Feb
3
asked Getting a custom post's custom field based on another custom post's custom field select