I have a node with a location field. I then have a block and I edit the .tpl.php file where I print fields from the node.
I use print_r($node) to see what I can use. When I view source the location information of that node is nowhere to be seen. All the other fields display fine like... echo node->field_gender[0]['value'];
Hi there,
I have a node with a location field. I then have a block and I edit the .tpl.php file where I print fields from the node.
I use print_r($node) to see what I can use. When I view source the location information of that node is nowhere to be seen. All the other fields display fine like... echo node->field_gender[0]['value'];
This is all I can see about the location field...
[field_location] => Array
(
[0] => Array
(
[lid] => 11
)
)
also this...
[locations] => Array
(
[#type] => markup
[#value] =>
[#weight] => 0
)
I'd like to print the location name, street and country...but I can only print the location id using the above... The location table is populated.
If anyone can help me it will be greatly appreciated