WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Widget
[resolved] Make the Custom Post Type not Private (2 posts)

  1. askwpgirl
    Member
    Posted 1 year ago #

    Hi Johan,

    I use Jetpack for sharing icons on several sites. In the Jetpack sharing settings, you can uncheck or check which custom post types you want the sharing icons to display on.

    However, because Custom Post Widget uses a Private custom post type, this option is not available. As a result, Jetpack inserts sharing icons on all the Custom Post Widget Content Blocks on a page.

    To resolve this, I am using CSS to hide the social sharing icons with the Custom Post Widget Content Blocks. This is inelegant. I'm wondering if it makes sense to allow the Custom Post Widget custom post type to not be private so other plugins can interact with it. What do you think? Here's info about that on the WordPress Codex:

    http://codex.wordpress.org/Function_Reference/register_post_type#Arguments

    I can see the benefit of it being private, but then we lose a certain amount of control with it being private.

    Thanks,

    Angela

    http://wordpress.org/extend/plugins/custom-post-widget/

  2. Johan van der Wijk
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Angela,

    To prevent SEO issues with content blocks getting indexed separately, in the post type definition I have set the public option to false.

    It is quite unfortunate that the Jetpack plugin does not allow you to uncheck the option for sharing icons on post types that are not public and I don't really understand why it works like that.

    The good news is that you can override this setting in your functions.php file: http://stackoverflow.com/questions/10532766/override-a-wordpress-plugins-taxonomy-registration-setting-without-modifying-co

    I hope this helps!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic