Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter toposscz

    (@toposscz)

    If you’re happy with the plugin you found, that’s good news.
    If you prefer to have this feature built into Jetpack Markdown, please post your request on Jetpack forums.

    Thread Starter toposscz

    (@toposscz)

    Could you add this functions to your plugin? Could you test with Pods Framework?

    function get_public_post_types() {
    	$post_types = get_post_types( array(
    		'public' => true
    	) );
    
    	return $post_types;
    }
    
    /**
     * Add post type support for Markdown if a post
     * type is public and has editor support.
     *
     * @since 1.0.0
     * @uses post_type_supports()
     * @uses add_post_type_support()
    */
    function add_post_type_support() {
    	foreach ( $this->get_public_post_types() as $post_type ) {
    		if ( post_type_supports( $post_type, 'editor' ) ) {
    			add_post_type_support( $post_type, 'wpcom-markdown' );
    		}
    	}
    }

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Actually, I don’t develop this plugin. If your read the description, it clearly says that this plugin is the (almost) untouched module from Jetpack.

    Please ask Jetpack team on the forums.

    thinwybk

    (@thinwybk)

    Using “Jetpack Markdown” + “Jetpack Markdown Support” whould be oversized for me. I would prefer to have the custom post type support build into “JP Markdown” as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Posts’ is closed to new replies.