WP Manifestindependent plugin directory
manifest / content / genesis-cmb2-meta-boxes

Genesis CMB2 Meta Boxes

Add CMB2 meta boxes and custom fields to Genesis CPT archive and theme settings pages.

by Tim Jensen · github.com/forwardjumpmarketingllc/genesis-cmb2-meta-boxes · website

8stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/forwardjumpmarketingllc/genesis-cmb2-meta-boxes/archive/refs/heads/master.zip

Declares an update source (https://github.com/ForwardJumpMarketingLLC/genesis-cmb2-meta-boxes), so updates arrive through the plugin's own updater.

From the readme

README # This plugin simplifies adding CMB2 meta boxes to the Genesis Theme Settings and Genesis CPT Archive Settings pages. Group fields are now supported. Requirements PHP 5.4+ Installation Download the zip file and install it using the WordPress plugin installer. Usage Meta boxes can be added to the Genesis Theme Settings page or to Genesis CPT Archive Settings pages. Make sure your custom post types have support for 'genesis-cpt-archives-settings'. - Use the helper function genesiscmb2addthemesettingsbox() to add meta boxes to Genesis Theme Settings. - Use the helper function genesiscmb2addcptarchivebox() to add meta boxes to Genesis CPT Archive Settings. For example: - See example configuration arrays in the config directory. In general, use the same arguments for creating meta boxes and fields as you normally would with CMB2. It is not necessary to include 'id' or 'context' in the 'metabox' array. - Retrieve the custom field values using genesisgetoption( $fieldid ) and genesisgetcptoption( $fieldid ). Credits Major props to Justin Sternberg for the heavy lifting. This plugin is simply a repackaging of the Justin's example code provided in the CMB2 Snippet Library

Read the full README on GitHub →