Skip to:
Content
Pages
Categories
Search
Top
Bottom

Usermeta dosen’t show frontend but get’s updated backend

  • @hixen

    Participant

    Hi, don’t know if this is a bug or just my doing it wrong. I have added a twitter and a facebook field to my user details, and removed the yim, aim and jabber fields. I’m also using the events manager plugin, who have added a Phone field to my user details. So when trying to edit my user details, front end with bbpress (form-user-edit.php) my user_contactmethods dosen’t get updated. This is the code i used:
    add_action(‘roots_footer’, ‘roots_google_analytics’);
    add_filter( ‘user_contactmethods’, ‘my_user_contactmethods’ );

    function my_user_contactmethods( $user_contactmethods ) {
        unset($user_contactmethods['yim']);
        unset($user_contactmethods['aim']);
        unset($user_contactmethods['jabber']);
        $user_contactmethods['twitter'] = 'Twitter';
        $user_contactmethods['facebook'] = 'Facebook';
        return $user_contactmethods;
    }
     This is the code that shows my stuff front end (well it's your code, from form-user-edit.php) 
    

    http://pastebin.com/iYV5H6jv My problem is that it doesn’t output any values front end, but if I type something and press the update button, it gets updated backend, but still it turns blank front end. Hope you guys understand, any help, feedback or ideas is much appreciated.

    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 4 months ago by hixen.
    • This topic was modified 12 years, 3 months ago by Stephen Edgar. Reason: Added topic tags
  • You must be logged in to reply to this topic.
Skip to toolbar