Wordpress accessing custom fields in code

Author - Kajal Marwaha
21.03.2016
|
0 Comments
||

In WordPress you can use following code for accessing value of custom fields:

$key_name = get_post_custom_values($key = 'Key Name');
echo $key_name;//display the value

Here ‘key name’ is name of the custom field.

get_post_custom_values() is a function in WordPress, which is used to get the custom value of a field which is stored in a variable $key_name.

Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Web development or any other software development assistance please contact us at webdevelopment@webners.com

Webner Solutions is a Software Development company focused on developing Insurance Agency Management Systems, Learning Management Systems and Salesforce apps. Contact us at dev@webners.com for your Insurance, eLearning and Salesforce applications.

Leave a Reply

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