Using Plugin with Custom Post Types
-
Have something I hope is pretty simple to do. I just want to use a plug in with a custom post type. I’m wanting to have a section of our site turned into a wiki like resource. So I’m using the plugin WP-Wiki.
I dug through the Plugin.php code to find what the function name for the plugin was and then registered the post type in the themes function.php and nothing happened.
Here is the code:
add_action('init', 'docs_register'); function docs_register() { $args = array( 'label' => __('Docs'), 'singular_label' => __('Docs'), 'public' => true, 'show_ui' => true, 'capability_type' => 'page', 'hierarchical' => false, 'rewrite' => true, 'supports' => array('title', 'editor', 'wordpressWiki_metabox') ); register_post_type( 'docs' , $args ); }
I was hoping by adding the plugin function ot the supports array would make it work but no dice. Am I on the right track with this or is it even possible?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using Plugin with Custom Post Types’ is closed to new replies.