The Post Reference field allows to link from one post to another. Under the hood, this field creates a one-to-many relationship, which allows you to display the related posts. The Post Reference field allows you to connect only one post of one type to one post of the other type. When you display a room, you can also easily display fields that belong to the house. When you now edit any post of the selected type, there will be a box allowing you to connect it to any post of that related type. This could be a template for single posts or an archive page. Sometimes you might want to connect one post to multiple posts by making your Post Reference field into a repeating one. However, a repeating Post Reference field implies creating a many-to-many relationship. For example, an event could be connected to many announcements and single announcement could be connected to many events. Instead, it offers to automatically turn your post reference field into a post relationship.
WordPress has the ability to allow post authors to assign custom fields to a post. This arbitrary extra information is known as metadata. This metadata can include bits of information such as:.
For my work, I am often requested to do the customization for my clients. One of the most requests are adding the new custom fields to the posts or pages. The benefits for creating the custom fields are for organizing the data and grouping them. For adding the custom fields to your WordPress, there are two common ways to do. In this post, I will share two ways. This method is the easy and fast way for adding the custom fields to your posts, pages or custom post type.