Tag: cmb2



Blog / Tech

CMB2 & WP REST API Part 2 – Full Support

This article is a follow up to this previous post, which explored a method for adding CMB2 meta to the WP REST API. As CMB2 author Jason Sternberg mentioned in a comment on that post, WP REST API support was in the process of being built in at that time.

Now that time has come.

Just in time for the announcement that content endpoints are making it into WordPress 4.7, CMB2 published an update on github and on the plugin announcing full support for the WP REST API.

Blog / Tech

Custom Post Type Basics – Super Custom WP Part 2

This is part two of a series on customizing WordPress. Click here to start at the beginning.

The transition of WordPress from blogging platform to full-fledged CMS is an ongoing process, but it was around Version 3.0 that the ability to register our own custom post type really kicked it into high gear. Custom post types allow us to take advantage of a number of WordPress defaults- the admin UI, taxonomies, archives, thumbnails, revisions, page templates, and more- in order to handle our own types of repeatable data.

Blog / Tech

CMB2 & the WP REST API

Update: CMB2 has added support for the REST API. While this method is still valid, I encourage you to review my follow-up post as well as their documentation.

CMB2 opens a lot of doors with WordPress development, making it possible to store all sorts of meta, or extra, information about each post. Typically, meta information includes fields like Categories or Tags, but there’s really no limit to what sorts of meta information you can store.