Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have used Pie Register plugin to add a "Phone" field.

I tried every method in the book (that google fetched for me, so far) to show it but it shows an empty array although the field is not empty and the wordpress backend shows it.

Also, User Meta plugin is able to show the field with its data but I can't get it to show manually in my header file.

Any help is appreciated, I spent hours without any luck doing this! Thanks

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Try this code:

echo get_user_meta( get_current_user_id(), 'phone', true );

And pay attantion about that plugin. The plugin is not using any prefixes, so when you'll create a custom filed with same name as any WordPress user_meta, it will override this one.

share|improve this answer
    
You're awesome! It worked!!! Thank you so much!!! –  Claudio Delgado Feb 2 '13 at 12:34
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.