Displaying custom field in user profiles
-
Hi,
In my website any users are allowed to post. But admin should approve to publish that post in website.
I am searching some plugin for this.
Now I want to add one custom field named credit in the new post/edit post and I am able to add this and the values are getting stored in the “wppostmeta” table. And I am able to see the values like this in the db,
<strong>Meta_id | Post_id | meta_key | meta_value 238 120 Credit 5</strong>But actually when i try retrieve the values in user profile its not at all getting the values. Even I myself do not know exactly what I have to do.
But I added the credit field in the user profile like this,
function add_Credit($profile_fields) {
// Add new fields
$profile_fields[‘gplus’] = ‘Credit’;
return $profile_fields;
}
add_filter(‘user_contactmethods’, ‘add_Credit’);I tried these things to get the value in user profile,
<?php the_meta(); ?> added this in functions.php. I am very new to wordpress, So I don’t know some basic things also. Kindly help me.The blog I need help with is: (visible only to logged in users)
-
The blog you specified at javadomain.in does not appear to be hosted at WordPress.com.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
- The topic ‘Displaying custom field in user profiles’ is closed to new replies.