The Power of WordPress Custom Fields

Nur . Posted in How-To, Plugins 1223 Views

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.

Custom fields are actually post metadata that is associated with the post,  it can open up an avenue for custom theme display. Custom fields is located in the Custom Fields module below the post editing box. If you would like to create a new custom field, you can create a new one. The most common use case for custom fields was associating an image URL with a custom field. In the latest version of WordPress, a new template tag, the_post_thumbnail(), is used to retrieve the first post attachment  and render it in the layout.

Theme and plugin developers who want to use custom fields can do so by using the get_post_meta() function

Custom-Fields

When I started writing about this Powerful tool I found a  very useful and well written tutorials, so I decided to compile these tutorials instead of writing my own. I hope you must find them very useful.

Tutorials and Resources for Working with WordPress Custom Fields:

WordPress-Custom-Fields

1. Using WordPress Custom Fields: Introduction

This tutorial will introduce you about WordPress Custom Fields and explain you the basic usage of this power toll.

2. Using Custom Fields from WordPress Codex

This the official documentation of WordPress Codex on the subject of custom fields. It will explain more specifically and in detail about the subject, How to use this function for theme and plugin development, and you will find other related information.

3. WordPress Custom Field Tutorial from 8164.org

In this tutorial Jin Yang explains how to customize a blog post by using the Custom Fields. He is presenting the very cool trick about how to set post background using the custom field image.

4. Using WordPress Custom Fields: Part 1 – The Basics

Perishable Press has written about Custom Field in 2 Parts. In part first he explain the basic usage of Custom Fields And he explain how to add thumnail in sidebar by using the Custom Field.

5. WordPress Custom Fields: Part 2 – Tips and Tricks

Part 2 provide 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.

6. WordPress Custom Fields: Adding Images to Posts

This tutorial is the part of Justin Tadlock’s series and this tutorial will explain how to add images to your posts using WordPress custom fields.

7. Add Thumbnails to WordPress with Custom Fields

Tutorial9 giving the basics of custom fields and using them to show thumbnails on the front page or on the post page.

8. 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.

9. How to Easily Get the Value of a Custom Field

A cool trick from WPRecipes in which they explain how you can use the value of a custom field, Also they provided the necessary code.

10. An Easy Way to Get the Contents of a Custom Field

Nathan Rice shows a way to get the contents of a custom field by using less code. he explains how to use this Function in functions.php file.

11. How to Display Multiple Values of a Custom Field Key

Well explained article on how to use custom fields in situations where a post may have multiple values of a custom Fields.

12. Display Inline Ads with Custom Fields and WordPress

For this purpose there a few plugins are available but plugin always cost you a load on your blog database, so better way to do it manually. In this Tutorial they explain how to use Custom Fields to add Adsnse or other ads to specific post.

13. 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.

14. WordPress Custom Fields: Listing a Series of Posts

Justin Tadlock shows how make a 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.

15. In Praise of WordPress Template Tags: Part 2

Darren Hoyt explain how to use custom fields to display Template Tags.

16. WordPress Tip: 3 Awesome Custom Field Tricks

Chris Cagle’s 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.

18. Jazz Up Your Site: 28 Ways to Use Custom Fields

Raj Dash’s explains the potential of custom fields.

19. Creating Custom Write Panels in WordPress

Function explains in this tutorial how to create the custom write panels that will allow you to accomplish the same things as custom fields.

20. Custom Fields Hacks For WordPress

They have compiled a list of 10 useful things that you can do with custom fields in WordPress. Among them are setting expiration time for posts, defining how blog posts are displayed on the front page, displaying your mood or music, embedding custom CSS styles, disabling search engine indexing for individual posts, inserting a “Digg this” button only when you need it and, of course, displaying thumbnails next to your posts.

Plugins for Working with Custom Fields:

There are a number of plugins that enhance the use of custom fields. Here is a list of useful plugins that are compatible with the latest version of WordPress.

1. Custom Field Template

The Custom Field Template plugin adds the default custom fields on the Write Post/Page. The template format is almost same as the one of the rc:custom_field_gui plugin.

2. 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.

3. 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.

4. 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.

5. Advanced Custom Field Widget

The Advanced Custom Field Widget is an extension of the Custom Field Widget by Scott Wallick, and displays values of custom field keys, allowing post- and page-specific meta sidebar content.

6. 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.

7. WP Custom Fields Search

This is a search plugin for wordpress, designed to filter posts in a more structured way than the default wordpress search. Specifically it allows multiple form inputs to be configured to search different aspects of a post, i.e. one term could search the post content, one the post title and one could search a custom field associated with the post.

8. 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 example, if you write about books, you can add a box where you can enter title and author, etc. The boxes can be placed either to the right or to the left on the Write/Edit page.
Worried about pmp dumps exam preparation? We offer up-to-dated 642-611 practice questions and 646-985 dumps with 100% exam pass guarantee.

Nur

I am a Wordpress, Website Developer and Designer, creator @ WP Arena, Provide Free WordPress consultation and can help to install WordPress in a secure way to small businesses and bloggers.

Free & Professional WordPress Security Service Free & Professional WordPress Security Service

We Love WordPress. WordPress Arena is a place for WordPress Developers and Designers, providing Tips, tricks, tools and resources to build a website or blog on WordPress. We also present The WordPress Showcase for all kind of WordPress Powered Websites.

Recent Comments

Anderson

|

Dont work with post_type? ‘post_type=property&numberposts=1′