Misc

Adding Fields After the Title

Adding FM fields between the title and┬áthe main content editor is a fairly simple process that can be broken down into three basic steps: Render the meta boxes to appear in some uniquely defined context–(uniquely defined context as in not ‘normal’, ‘side’, or ‘advanced’). Here,’my_after_title’ is used. unset the unique context from $wp_meta_boxes[‘post’]. Set the […]

Storing Data Unserialized

Overview By default, grouped or repeating fields store their data as serialized PHP in a single meta entry. This method favors data retrieval, but has two main drawbacks: (1) it couples data structure and presentation, and (2) it’s difficult to query against (e.g. using a meta query). Therefore, there may be cases where you don’t […]