What is custom field in wordpress | WordPress update custom field 

If we follow the wordpress user profile section then we can see Contact Info, About Yourself etc as a default. Now we will create a section which name is Extra Information and will include Mobile No, Profession and Location.
At first, you have to login you site. Then go to Dashboard>Appearane>Editor. Then you have to open functions.php file. Then copy the following code and add code before ?>. If you want you can add this code in your php block.
 
Wordpress tutorials for starting a blog – Part 5: (How to add new fields section in wordpress blog user profile)
Now for save this change you need to click update button. Then go to User>Your Profile, you can see that there are created a new section named Extra Information with three fields Mobile No, Profession and Location.
 
Wordpress tutorials for starting a blog – Part 5: (How to add new fields section in wordpress blog user profile)
Now if you want to show you input data, you need to open single.php file and add the below code in this single.php file.
 
Wordpress tutorials for starting a blog – Part 5: (How to add new fields section in wordpress blog user profile)
 

Leave a Reply

Your email address will not be published. Required fields are marked *