• Plans & Pricing
  • Log in
  • Get started
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress 
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Get started
  • Sign up
  • Log in
About
  • Plans & Pricing
Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Newsletter
  • Professional Email
  • Website Design Services
  • Commerce
  • WordPress Studio
  • Enterprise WordPress  
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • Support Center
  • WordPress News
  • Business Name Generator
  • Logo Maker
  • Discover New Posts
  • Popular Tags
  • Blog Search
Jetpack App
  • Learn more
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Search
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
Forums / Displaying custom field in user profiles

Displaying custom field in user profiles

  • Unknown's avatar
    agnaveen · Member · Dec 11, 2013 at 3:17 am
    • Copy link Copy link
    • Add topic to favorites Add topic to favorites

    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)

  • Unknown's avatar
    supportbot · Member · Dec 11, 2013 at 3:17 am
    • Copy link Copy link

    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.

Tags

  • displaying custom field in user profile
  • user profile with custom field

About this topic

  • In: Support
  • 2 participants
  • 1 reply
  • Last activity 12 years
  • Latest reply from agnaveen

Couldn't find what you needed?

Contact us

Contact us

Get answers from our AI assistant, with access to 24/7 expert human support on paid plans.

Browse our guides

Browse our guides

Find step-by-step solutions to common questions in our comprehensive guides.

WordPress.com

Products
  • WordPress Hosting
  • WordPress for Agencies
  • Become an Affiliate
  • Domain Names
  • AI Website Builder
  • Website Builder
  • Create a Blog
  • Professional Email
  • Website Design Services
  • WordPress Studio
  • Enterprise WordPress
Features
  • Overview
  • WordPress Themes
  • WordPress Plugins
  • WordPress Patterns
  • Google Apps
Resources
  • WordPress.com Blog
  • Business Name Generator
  • Logo Maker
  • WordPress.com Reader
  • Accessibility
  • Remove Subscriptions
Help
  • Support Center
  • Guides
  • Courses
  • Forums
  • Contact
  • Developer Resources
Company
  • About
  • Press
  • Terms of Service
  • Privacy Policy
  • Do Not Sell or Share My Personal Information
  • Privacy Notice for California Users
DeutschEspañolFrançaisBahasa IndonesiaItalianoNederlandsPortuguês do BrasilSvenskaTürkçeРусскийالعربيةעִבְרִית日本語한국어简体中文繁體中文English

Mobile Apps

  • Download on the App Store
  • Get it on Google Play

Social Media

  • WordPress.com on Facebook
  • WordPress.com on X (Twitter)
  • WordPress.com on Instagram
  • WordPress.com on YouTube

Automattic

Automattic
Work With Us
    • WordPress.com Forums
    • Sign up
    • Log in
    • Copy shortlink
    • Report this content
    • Manage subscriptions