• Resolved rt49andellis

    (@rt49andellis)


    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_Templates

    I 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!!

Viewing 1 replies (of 1 total)
  • Thread Starter rt49andellis

    (@rt49andellis)

    I apologize – I just realized that this portion of the profile was coming from a plugin, not the WP core.

Viewing 1 replies (of 1 total)
  • The topic ‘User Meta – Location, State, Country etc’ is closed to new replies.