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.
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.
See if this helps:
http://wordpress.org/support/topic/254312?replies=11
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.
i want display it in the template of my site.
I can use it
<?php
$user = get_userdata($post->post_author);
//echo "
"; print_r($user); echo "";
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"
This topic has been closed to new replies.