20+ Tutorials and Resources for Working with Custom Fields in WordPress

One of the keys to WordPress’s flexibility and endless possibilities is the use of custom fields. With custom fields you can do all kinds of things, but most designers and developers who are new to WordPress are not familiar with how to put custom fields into practice. In this post we’ll look at a number of tutorials that will show you some potential uses of custom fields, as well as a handful of plugins that make it easier or more productive to use custom fields.

Using WordPress Custom Fields: Introduction

This article from Justin Tadlock gives an overview of custom fields, and it’s actually the introductory post to a series on the subject of custom fields (other posts in the series are included in the list). If you’re not familiar with custom fields or if you just want to make sure you get the basics before moving further, this article is a great starting point.

Using WordPress Custom Fields

Using Custom Fields

The WordPress Codex of course provides some documentation on the subject of custom fields. Although many of the articles that are featured here will get into more specifics, it’s always a good idea to remeber that the codex is available when you have questions, or keep useful articles on the Codex like this one bookmarked.

Using Custom Fields

WordPress Custom Field Tutorial

Jin Yang explains custom fields and shows how you can use them to customize a blog post by styling the background. In the example he chooses a custom background image for the post, which is a pretty cool trick for making your blog unique.

WordPress Custom Field Tutorial

Using WordPress Custom Fields: Part 1 – The Basics

Perishable Press has a two=part series on custom fields. The first part includes some basic information and shows a few ways that custom fields can be used, including adding images to the sidebar.

Using Custom Fields Part 1

WordPress Custom Fields: Part 2 – Tips and Tricks

The second part of the Perishable Press series goes into more detail on working with custom fields. The article covers topics like conditional display of custom field data, and showing data only if a custom field exists.

Using Custom Fields Part 2

WordPress Custom Fields: Adding Images to Posts

One of the more common uses for custom fields is to add images to a post. This article is part of Justin Tadlock’s series and he provides all the instruction and code that you will need to get a custom field to show an image on your posts.

Adding Images to Posts

Add Thumbnails to WordPress with Custom Fields

Tutorial9 also provides a similar tutorial for giving the basics of custom fields and using them to show thumbnails on the front page or on the post page.

Add Thumbnails with Custom Fields

WordPress Custom Fields: Laying Text Over Your Lead Graphic

Derek Punsalan shows a really nice approach to use a custom field for adding a background image behind the post title. This is another way to take advantage of the power of custom fields to create a blog that looks a little more unique.

Laying Text Over Your Lead Graphic

How to Easily Get the Value of a Custom Field

This is a brif post from WPRecipes that explains how you can the value of a custom field, with the necessary code provided.

How to Easily Get the Value of a Custom Field

An Easy Way to Get the Contents of a Custom Field

In this article Nathan Rice shows a way to get the contents of a custom field by using less code. His approach involves editing the functions.php file, which he explains.

An Easy Way to Get the Contents of a Custom Field

How to Display Multiple Values of a Custom Field Key

This article shows how you can use custom fields in situations where a post may have zero, one or multiple values of the same custom code. The example used in the tutorial is quotes. Some post may have none, while others may have several.

How to Display Values of a Custom Field Key

Display Inline Ads with Custom Fields and WordPress

This post shows how you can use custom fields to add AdSense or other ads to specific posts. While there are plugins for this purpose, knowing how to do it manually is never a bad thing.

Display Inline Ads

How to Add Videos to Your WordPress Sidebar

This is another post in Justin Tadlock’s series. In this article he shows how you can add YouTube videos to your sidebar, controlled by custom fields. This is an interesting idea that you don’t see in action very often, but could have a lot of potential in the right situation.

How to Add Videos to Your WordPress Sidebar

WordPress Custom Fields: Listing a Series of Posts

If you often write posts in a series, Justin Tadlock shows how you can list other posts from the series by using custom fields. The end result would be similar to a related posts plugin, except you would have more control over which posts are listed.

Listing a Series of Posts

In Praise of WordPress Template Tags: Part 2

Darren Hoyt has a two-part series about template tags and magazine-style themes. In the second part he covers a number of items, including custom fields as they relate to the magazine-style layout.

In Praise of WordPress Template Tags

WordPress Tip: 3 Awesome Custom Field Tricks

Chris Cagle’s article covers three things you can do with custom fields: 1) a custom “read more”, 2) awesome thumbnailed recent posts, and 3) post-specific CSS overrides.

3 Awesome Custom Field Tricks

Jazz Up Your Site: 28 Ways to Use Custom Fields

Raj Dash’s article on Performancing can be helpful for seeing the potential of custom fields. You may see a few ideas on here that you hadn’t thought of before that would be useful on your site or for a client project.

28 Ways to Use Custom Fields

Creating Custom Write Panels in WordPress

While custom fields have plenty of power and potential, they’re not always the most user-friendly for clients. Function has provided this tutorial for creating custom write panels that will allow you to accomplish the same things as custom fields, but may be a little more manageable for some people, especially non-tech-savvy clients.

Creating Write Panels in WordPress

Plugins for Working with Custom Fields:

In addition to the tutorials featured above, there are a number of plugins that enhance the use of custom fields in some way, or make them easier to use. Here is a small sampling of useful plugins that are compatible with the latest version of WordPress, 2.7.1.

Custom Field Template

This plugin adds the default custom fields on the Write Post/Page, making it a little bit easier to work with.

Custom Fields Shortcode

You can use this plugin to show custom fields in your posts by using shortcode, with no modification required for your theme.

Custom Field Images

With this plugin you can easily add images to your posts, pages and feeds. There is also functionality to display recent posts as images instead of text links.

Custom Field Taxonomies

Custom Field Taxonomies will allow you to enhance the capabilities of your site by making some of your custom fields act like tags.

Advanced Custom Field Widget

This plugin will allow you to easily show custom field data in the sidebar of specific posts, providing essentially limitless possibilities.

Custom Field List Widget

This plugin lists all values of a choosable custom field name, groups the values of of a post and (hyper-) links the values to their posts as a sidebar widget.

WP Custom Fields Search

This plugin helps to improve the functionality of the WordPress search by allowing multiple form inputs to search different aspects of a post. An example use (and the reason the plugin was created) is for searching a real estate website by factors such as price.

More Fields

More Fields is a WordPress plugin that adds boxes to the Write/Edit page. These boxes contains input fields, so that additional (more) fields can be added to a post.

For more WordPress-related content, please see:

Looking for hosting? WPEngine offers secure managed WordPress hosting. You’ll get expert WordPress support, automatic backups, and caching for fast page loads.

56 Responses

Comments are now closed on this post.

  • Ansh, May 14, 2013

    Great tutorial list.. Thank you so much.

  • Daniel, December 10, 2011


    Extra category content is a simple plugin that adds a rich text editor to every category in your wordpress site, that gives you the opportunity to create a special description for the category, different from the default category description.

    You can also add any HTML code to the description, so you can include an image, a table or a specially formatted text.

    This plugin is useful if you want for example to add a general description or an image before the listing of the post from a category.

  • Darren, June 26, 2011

    I wonder why Magic Fields doesn’t get mentioned in some of these lists. I am currently using custom field template with custom post type UI plugins, but I may go back to using magic fields. I’m pretty happy with my current combo but magic fields was much easier to use and the developers were pretty quick with replies in the support forum(s). Check it out, add it to your analysis and share your thoughts: http://magicfields.org


  • avstudio, May 10, 2011

    For category custom fields there is this plug in : http://wordpress.org/extend/plugins/categorycustomfields/

  • bravel tangkok, April 14, 2011

    Thank you. I will bookmark this for sure and use it as reference.

  • Asiantv, April 6, 2011

    Custom Fields is the most powerful tools for customizing template files, these are special fields in the WordPress database that you can create yourself by giving them a name (which can be then shared by all other posts or pages) and assigning a value for the particular post.

  • Clare, January 1, 2011

    This is a great resource list – I never realised quite how powerful custom fields were until today! I’m using them in a theme I’m building to work some magic :)

  • Silvi Anggraini, December 29, 2010

    great article, i’m newbie in customize wordpress theme

  • neel, April 22, 2010

    Great List. i am looking for a hack. where i want to display all the custom field entered on the wordpress blog in a drop down and when you select the custom field then i want to display all the posts with that custom field. do you have any idea how to complete this.

  • WPExplorer, December 25, 2009

    There is so much useful information on this post. Thank you.

  • Dave, September 18, 2009

    Good tips, which I should try on one of my WordPress blogs.

  • j000, August 8, 2009

    This was tweeted to me and I find it very useful I will bookmark this for sure and use it as reference. I wanted to know how to add video to the side bar and now I know. Thanks for sharing.

  • Hesham, June 15, 2009

    Very good post, I will include it on my weekly post!

  • catherine, May 21, 2009

    great collections.i really loved it….

  • allergia al nichel, May 19, 2009

    whooo man, great post.
    thank you for sharing… i will use your tips for my blogs

  • Oren Yomtov, May 19, 2009

    Nice post.
    I just wanted to share my WordPress Mass Custom Fields Manager Plugin, with anyone who needs to update/add or delete lost of custom fields at once.
    Have fun and if you use it please contact me for feedback/comments/requests.

  • Abrishca Digital Media, May 16, 2009

    Awesome list, thanks for the great resource. I’ve been working on an idea that involves custom fields that, being a little out of left field, may or may not work! But if it does, I’ll be sure to share it with everyone!

  • Curtis, May 16, 2009

    This is a great set of tutorials for WordPress custom fields hacks. Thanks. This will come in handy on my WordPress site.

  • Cody, May 14, 2009

    Hey thanks for the post. These are great tips to use for WordPress. I love using the custom fields.

  • OI Web Designer, May 14, 2009

    WordPress is ROCK.
    i was read slide show from Nick La and i found the various way to use wordpress. in this post i found other various way too, i will use for my reference for my article about WordPress. thanks for share

  • Vandelay Design, May 14, 2009

    Yeah I saw that post. When I put this post together I thought it was a good idea because I hadn’t seen much recently on custom fields. I guess Smashing had the same thought!

  • Web Design, May 14, 2009

    Interesting stuff, I’m familiar with custom fields but this is a really good point of reference that is well worthy of a bookmark ;-)

  • Bogdan Pop, May 13, 2009

    Now this is totally strange. There’s a post on the same topic on Smashing Magazine published little under 3 hours before this one… Perhaps you should add it to the list.

  • Abhijeet Mukherjee, May 13, 2009

    Brilliant stuff, Steven ! Looking forward to more such posts which would help in customizing the WP framework easily. I’d love to read them ( and you know why ;-) )

  • Leland, May 13, 2009

    Great collection of custom fields tutorials. I haven’t seen a lot of these, and although I know how to use custom fields already, there are some great ideas that I haven’t though of before here.

    And of course, thanks for mentioning my inline ads tutorial as well. :)

  • Vandelay Design, May 13, 2009

    No problem Jin, I liked your post. Thanks for that plugin, I’ll check it out.

    You’re welcome Jeff. Thanks for the good content.

  • Jeff Starr, May 13, 2009

    Thanks for including my two-part series on custom fields! This is an incredible resource that was definitely needed. Thanks for creating it!

  • Patternhead, May 13, 2009

    Great list, custom fields make almost anything possible in WP

  • Jin, May 13, 2009

    Thank you for featuring my tutorial Steven. Another good tool, although not advertised as a CF plugin, is Art Direction.


    It uses custom fields to give each wordpress post a unqiue style. I think it’s easier to implement than my method :)

  • Christopher Ross, May 13, 2009

    I absolutely love working with custom fields in WP, thanks for posting this!

  • Anthony Proulx, May 13, 2009

    Great Tips, I will for sure come back and try some out.

    Anthony Proulx

  • joyologo design shop 2.0, May 13, 2009

    very helpful tutorials, thank you so much..

  • Vandelay Design, May 13, 2009

    Hi Jamie,
    Thanks for the suggestion. I just added it to the post.

  • JamieO, May 13, 2009

    Your list of plugins for working with custom fields missed the greatest option – More Fields [http://wordpress.org/extend/plugins/more-fields/]. It offers dead-simple creation of named fields and types (radio buttons, drop-down list, input, etc) so that users don’t have to remember a custom field name / format that is required to make the theme development possible. If you are tired of searching through the custom field drop-down list every time you add a post that has the same X fields, you really should consider this plugin.

    It also gives you the possibility to create custom write panels where you specify what custom fields are on display in the post / page panel and a separate admin menu section for those content elements. I would say that it enables the more advanced user aspects of “WordPress-as-a-CMS” without the complexity of Flutter, PODS or other large scale plugins.

    When combined with my Idealien Category Enhancements [http://wordpress.org/extend/plugins/idealien-category-enhancements/] you have a very easy way to create custom content entry and custom templates to match.