Forums

Using Plugin with Custom Post Types (3 posts)

  1. Buckycat7
    Member
    Posted 1 year ago #

    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?

  2. Buckycat7
    Member
    Posted 1 year ago #

    So I'm taking it that using plug-ins with custom post types in impossible?

  3. funghi
    Member
    Posted 1 year ago #

    Since custom post types are pretty new, many plugins are not ready yet to support it. So this is not impossible, just it hasn't been done!

Topic Closed

This topic has been closed to new replies.

About this Topic