• Resolved dougjoseph

    (@dougjoseph)


    Since Jetpack’s Publicize option now supports Custom Post Types, as announced here, and testified as working here, I went into Pods Admin > Edit Pods > Advanced Options, and enabled support for “Jetpack Publicize Support.”

    What I expected was to see publicize options shown on a new Pods item of that type, like this:

    https://www.webmatros.com/wp-content/uploads/2014/03/Screen-Shot-2014-03-02-at-16.52.31.png

    However, the publicize options were not shown.

    The 2nd post article I linked to above (1st paragraph) assumes a CPT was created manually by code, and says the publicize options can be obtained in this way:

    Simply add publicize to the “supports” array of your custom post type, in the functions.php file, found in your theme folder (provided you’ve created your custom post type there).

    Like this:

    ‘supports’ => array ( ‘title’, ‘editor’, ‘excerpt’, ‘publicize’, ‘thumbnail’, ‘comments’, ‘revisions’, ‘custom-fields’, ‘page-attributes’, ),

    One commenter on the article said the following:

    If you want Publicize to work with a custom post type that is being set by a plugin then you can use this code in your functions.php file to add the support for that post type:

    add_action(‘init’, ‘my_custom_init’);
    function my_custom_init() {
    add_post_type_support( ‘custom_post_type’, ‘publicize’ );
    }

    However, since the “supports” option in Pods Admin shows “Jetpack Publicize Support” as one of the options, I’m thinking the above code options are not / should not be needed.

    Can anyone comment on this?

    Does a CPT need some certain other options checked in Advanced Options in order to show Jetpack Publicize as functional?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter dougjoseph

    (@dougjoseph)

    Update: I also tried adding the action / function in the latter part above, and still don’t get the Jetpack Publicize options showing.

    The name of my CPT is “publication” and this is what I added to the functions.php file of my child theme:

    add_action(‘init’, ‘my_custom_init’);
    function my_custom_init() {
    add_post_type_support( ‘publication’, ‘publicize’ );
    }
    Thread Starter dougjoseph

    (@dougjoseph)

    UPDATE: SUCCESS!

    Above, I happened to notice all the single quotes were “curly” instead of straight!

    Once I corrected that, boom, the Jetpack Publicize options starting working!

    Marking this as solved.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hello @dougjoseph
    Good to hear you’ve resolved the issue.

    Above, I happened to notice all the single quotes were “curly” instead of straight!

    Always be careful with copy/paste ??

    Cheers, Jory

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot get Jetpack Publicize support to show in Pods item’ is closed to new replies.