Custom Fields is an important and useful feature in WordPress and bring us a very high customization ability. So, let’s find out the basics, relevant techniques, and excellent applications of Custom Fields in this series.
- What is Custom Fields in WordPress?
- Easy Way to Add Custom Fields in WordPress Without Plugins
- How to Create Custom Meta Boxes & Custom Fields in WordPress?
- Get Posts by Custom Fields in WordPress
- Applications of Custom Fields in WordPress
- How does WordPress Store Custom Fields? #1: Data flow
- How does WordPress Store Custom Fields? #2 Database
In the previous post, we have learned the basic concepts of custom fields and its applications. In this post, we will learn how to add custom fields to a WordPress site without coding or using a third-party plugin.
The default custom fields functionality in WordPress is to help end-users customize their websites fast and easily. However, it is limited to only text fields and thus, is not enough in most cases. In this post, we will learn how to take control of custom fields by creating our own new field types.
In the first post of this series, we’ve known about what custom fields is and the application of custom fields which allows users to add arbitrary information into posts. But what do you do after that? In the recent post, you also learned how to add custom fields programmatically and display them in your theme. But you’ll see a shortcoming if there is no classification and searching. This post will guide you on how to get posts by custom fields in WordPress and we’ll create an interesting application: advanced search.
As we know, custom fields is used to add more data to some objects in WordPress such as posts, pages, taxonomies, users, and comments. The two main purposes of custom fields are to describe and filter those objects. In this post, we’ll learn what specific applications custom fields has in reality.
Until now, we’ve known what custom fields is and how to use the functions provided by WordPress to work with custom fields. You’ve prepared everything needed to develop practical applications. But wait, before embarking on doing something new, you had better dig a bit deeper to have thorough understand custom fields’ nature. It’s time to find out an answer to the question: “What really happens with custom fields when I click Save post?”. The two coming posts will give you the answers.
Now, you know what custom fields is and in the previous post, we stopped in the step “WordPress calls the
update_metadata function to store data from custom fields in the database”. In this post, we’ll follow up that flow to figure out how WordPress organizes the database.