User Meta – Location, State, Country etc
-
I’m working on the author profile template and cannot for the life of me figure out how to get the “location” information to show up. I’m using codes such as
<?php echo $user->aim; ?>
to make the other info show, but can’t figure out things such as state, zipcode and country. Country being the most important.I’ve found that the database uses
wpm_useraddress
and the info looks something like this —a:7:{s:7:"company";s:0:"";s:8:"address1";s:0:"";s:8:"address2";s:0:"";s:4:"city";s:0:"";s:5:"state";s:0:"";s:3:"zip";s:0:"";s:7:"country";s:14:"Select Country";}
But…. how do I translate that into a code that can be output to the template? i.e. Country: United States
These pages have more info on getting the meta data but, location info isn’t included.
https://codex.www.ads-software.com/Function_Reference/get_the_author_meta
https://codex.www.ads-software.com/Author_TemplatesI hope you can see that I HAVE “done my homework” on this and am not just running to the forum for help without trying on my own. But, dang my forehead hurts from slamming it on the desk! So, any help would be greatly appreciated!!!! Thank you!!
- The topic ‘User Meta – Location, State, Country etc’ is closed to new replies.