How to call custom field value: WordPress

How to call custom field value: WordPress

November 11, 2011 Custom field play very big role in Wordpress. We can use it to call extra feature in post and page. For example (only to show custom field functionality), if you want to add a source url in your every post. You can do it using two method:
  1. Just write the source url in your post
  2. Use Custom field
Now here we will prefer 2nd option. You just need to add a "custom field id" and its value. I am using "source_url" for "custom field id" and "http://www.domain-name.com" as value. Please see the attached image below : How to Call Custom Field Image : Wordpress Below is the code to call custom field value. Just need to put this in your theme file.

Related Posts

from my blog


Improve The Reach of Your Business With WordPress Development Services

December 28, 2015

Social media marketing has undoubtedly changed the game between companies that are constantly in competition with each other. Not only has social media allowed better access to customer thought and...

Must Have Anti-Spam and Security WordPress Plugins

March 30, 2015

WordPress, is a hugely popular open source community platform which is also referred as a CMS. It's user friendly CMS that makes it very flexible and allows users to make...

Highly used WordPress Plug-Ins

March 25, 2015

Plugins, as the name suggest, are great tools which are used to enhance the functionality of WordPress blogs by addition of a wide range of useful features. They are basically...