Browsing Tag

custom fields

Creating Custom Fields for Attachments in WordPress

Creating Custom Fields for Attachments in WordPress

Custom fields in WordPress make it easy to customize your theme in a variety of ways; plus, they are simple to implement for posts and pages. Attachments, on the other hand, take a bit more work to implement, requiring you to read through and decipher core source code in order to make them work. We’ll be walking through the use of a couple undocumented WordPress hooks in this tutorial to make this process much easier.

Quick Tip: A 4 Minute Crash-Course in WordPress Custom Fields
videos

Quick Tip: A 4 Minute Crash-Course in WordPress Custom Fields

Today’s Basix video quick tip topic comes from a question on Twitter, concerning the use of custom fields in WordPress. Luckily, as you’ll find, attaching unique data to postings is as simple as assigning a value in the “Edit Post” page, and then referencing that information with the get_post_meta() method.