Let’s add a new custom field, which is a post metadata, to the database. You’ll use add_post_meta() and walk through using it. You’ll see what it does in the database, how to use it, what the different arguments do, and even peak into WordPress Core. This function adds a new post metadata record WHEN: ‘unique’ is set to false (you can get duplicates with this one). ‘unique’ is set to true AND the meta value does not already exist in the database for that post ID. Huh? Watch the video and do it with me to better understand what this […]
