Add support for Genesis Framework?
-
Hi developers.
This is a great plugin for those like myself, who can code if needed, but prefer to use visual tools.Is there any chance you could add features for some Genesis Framework functionality into the plugin?
The main one is the archives setting, as per:
https://www.rfmeier.net/custom-post-type-archive-settings-with-genesis-2-0/There are 3 Genesis extras which would be nice to have available via this plugin. They are:
‘genesis-seo’
‘genesis-layouts’
‘genesis-cpt-archives-settings’While it is easy enough to add this code to the functions.php file, it would be nice to keep all the CPT settings in one plugin. This is what needs to be added for Genesis Framework people:
add_action('init', 'my_custom_pt'); function my_custom_pt() { add_post_type_support( 'mycustompt', 'genesis-seo' ); add_post_type_support( 'mycustompt', 'genesis-layouts' ); add_post_type_support( 'mycustompt', 'genesis-cpt-archives-settings' ); }
I added the below line to your plugin, and it works perfectly.
<input type="checkbox" name="cpt_supports[]" tabindex="20" value="genesis-cpt-archives-settings" <?php if (isset($cpt_supports) && is_array($cpt_supports)) { if (in_array('genesis-cpt-archives-settings', $cpt_supports)) { echo 'checked="checked"'; } } elseif (!isset($_GET['edittype'])) { echo 'checked="checked"'; } ?> /> <?php _e( 'Genesis Framework CPT Archives Settings' , 'cpt-plugin' ); ?> <a href="#" title="<?php esc_attr_e( 'Adds the Genesis Framework CPT Archives Settings. Genesis parent theme must be installed before this will work', 'cpt-plugin' ); ?>" class="help">?</a>
The only possible enhancement might be to only display if the Genesis Parent Theme is installed, but otherwise, disclaimer would suffice.
Thanks
W
- The topic ‘Add support for Genesis Framework?’ is closed to new replies.