• Hello Guys.

    I need to call the custom field that i have created with Register Plus in the theme. How i can do it?

    But i need call specific custom field input in automatic from authors info.

    Excuse for my bad english.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter my-web

    (@my-web)

    Thanks MichaelH
    My problem is that i must call a input from specific custom field created with Register Plus.

    For example: I have created a custom field with name “adsense” in this field the author must enter your adsense code (in wordpress profile) and i must call the code (with custom field calling) for show the adversing in the post author.

    Can help?

    My problem is that i must call a input from specific custom field created with Register Plus.

    Where do you wish to ‘call a input’? In the admin section or when displaying posts on the blog.

    Thread Starter my-web

    (@my-web)

    i want display it in the template of my site.

    Thread Starter my-web

    (@my-web)

    I can use it

    <?php
    $user = get_userdata($post->post_author);
    //echo “

    "; print_r($user); echo "

    “;
    echo $user->postcode;
    ?>

    in template file for call the custom field?
    And my custom field name is “adsense” where i must place it?
    Thanks Michael

    Note that this line

    //echo "<pre>"; print_r($user); echo "</pre>";

    was intended as a commment to enable you to see all the returned values if necessary so normally delete that line in your actual code:

    As for your adsense, that probably is

    echo $user->adsense;

    This is probably too late to help anyone, but I just had to figure this out myself, and this worked for me within register-plus.php:

    <?php echo get_usermeta($un->ID, 'badge_number'); ?>

    “badge_number” being my custom field “Badge Number”

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Register plus] Call custom field in theme’ is closed to new replies.