Custom fields in custom places

The Request

Today we had a user ask how to show certain custom fields in a custom place, in her case it was to show info below the profile tab content. I though this might be a opportunity to show users (and developers) how easy it is to work with out new custom fields system and how little code it takes.

The Solution

The code below is pretty self explanatory, basically first we add a new location to the list of places you can output a custom field and then we make it output the info where we want.

Published by Stiofan O'Connor

Stiofan O'Connor is the co-founder and CEO of AyeCode LTD. With his business partner Paolo, they are the makers of the GeoDirectory, UsersWP and Invoicing plugins for WordPress. He is a Full Stack developer specialized in WordPress development. Stiofan started building websites as a hobby in the early 2000s with PHP at first. He then moved to the CodeIgniter Web Framework for a while before discovering WordPress and ever since he never looked back. Today his WordPress themes and plugins are used with success by +100.000 active websites.

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.