Public Ticket #156677
small tweak in the code for Custom Post Type


  • Wayne started the conversation

    Hi buddy, jetpack has just updated to allow us you use the Publicize for Custom Post Types, but it will involve tweeking the code. This is what they said:

    We’ve added Publicize support for custom post types, allowing you and your clients to automatically post new entries from any CPT to your social media networks. You’d need to make one small tweak in the code defining the CPT—just add 'publicize' to the CPT’s 'supports' array.

    For example, to enable the title, editor, Publicize, and Jetpack’s new support for Markdown: 'supports' => array( 'title', 'editor', 'publicize', 'wpcom-markdown' ),

    So, can you tell me what file and line i need to edit to do this.


  •  326
    Brian replied

    Oh that's good to hear! Simply add it to line 177 of the functions/minisites.php file which currently looks like this:

    'supports' => array('title','editor','author','thumbnail','excerpt','trackbacks','custom-fields','comments','revisions'),


  • Wayne replied

    spot on, thanks :D