
WordPress Custom Fields 101: Tips, Tricks, and Hacks July 9, 2019 11:53 am
Ever wondered what are custom fields in WordPress? Want to learn more about how custom fields work? In this article, we will show you how to user WordPress custom fields with tips, tricks, and hacks.
Since this is a lengthy article, we have added table of contents for easier navigation.- What are WordPress custom fields?
- Adding custom fields in WordPress
- Display custom fields in WordPress themes
- Creating user interface for custom fields
- Hide empty custom fields with conditional statement
- Adding multiple values to a custom field
- Displaying posts with a specific custom key
- Add guest author name using custom field
- Display contributors to an article using custom fields
- Display custom fields outside the loop in WordPress
- Display custom header, footer, sidebar using custom fields
- Manipulate RSS feed content with custom fields
- Manipulate RSS feed title with custom fields
- Set expiration date for posts using custom fields
What are WordPress Custom Fields?
WordPress custom fields are metadata that are used to add additional information related to the post or page such as title, author name, date / time, etc. By default, when you write a new post, page, or any content type, WordPress saves it into two different areas. The first part is the body of your content that you add using the post editor. The second part is the information about that particular content. For example, title, author, date, time, and more. This information bit of the post is called metadata. WordPress automatically adds all the required metadata to each post or page you create. WordPress also allows users to save their own custom metadata using custom fields.Categorised in: Blog Post