Support » Plugin: GetSocial » Custom Post Types, Please.

  • Resolved Doctor Psyringe


    There was a previous thread about Custom Post Types (CPTs), although it’s clearly out of date (quick solution of changing getsocial.php line 177). I’m making a comment to hopefully resolve the issue for all others.

    It’s obvious the correction lies on;

    LINE 374 getsocial.php ||

    function showbox() {
    global $post;
    $post_type = get_post_type();
    $settings = $this->get_settings();
    $hide_box_value = get_post_meta( $post->ID, ‘getsocial_hide_value’, true );

    if ( is_single() && ( ‘post’ == $post_type ) && true == $settings[ ‘main’ ][ ‘show_on_posts’ ] && $hide_box_value != “true” )
    return true;
    elseif ( is_page() && true == $settings[ ‘main’ ][ ‘show_on_pages’ ] && $hide_box_value != “true” )
    return true;
    elseif ( ( is_home() || is_front_page() ) && true == $settings[ ‘main’ ][ ‘show_on_homepage’ ] )
    return true;
    return false;
    || end reference

    It would be great if an adept .PHP coder or the plugin creator… …could offer a simple fix for having the GetSocial box appear on all posts, including custom post types. Thanks a million! I know the solution is right in front of me I’m just coding a dozen different site-related issues and can’t give this plugin much thought (usually they plug and they play, as they say).

Viewing 1 replies (of 1 total)
  • I figured it out.

    1. Through deductive research on this plugins support forum, you can easily solve this issue on your WordPress. Yes, the fix is a small change in the code posted above – why the small code change isn’t implemented in the official release (toggleable) is beyond me.

    2. I’m not going to post the solution, instead, you should either;

    A. Email the plugin Author suggesting he implement the feature into the plugin. Perhaps he will begin including features requested in support over a year old – maybe even actually provide some level of support or suggestion overall. This support forum is barren. I’d contribute, but he doesn’t (right?).

    B. Downgrade your version of this Plugin to one that has the PHP code on line 177.

    C. (and my most recommended) Do a plugin search for “social floating” on the WordPress Plugin database, use a different more amiable plugin. I only chose this plugin because it near replicates an old theme that had this feature built in and my fans hate drastic change (bs excuse). Again – use a different plugin, a general rule of thumb is NOT to use plugins with little support, it implies a short term longevity and you will save yourself pain in the long run while changing later because of the lack of support or more likely abandonment.

    Good luck!

    …I’m joking, the solution is;
    1. Open the “getsocial.php” from the plugin folder.
    2. Change the line on 380 from;

    if ( is_single() && ( ‘post’ == $post_type ) && true == $settings[ ‘main’ ][ ‘show_on_posts’ ] && $hide_box_value != “true” )


    if ( is_single() /*&& ( ‘post’ == $post_type )*/ && true == $settings[ ‘main’ ][ ‘show_on_posts’ ] && $hide_box_value != “true” )

    Boom, custom post types work. Note the “/*” commenting out the code. I still strongly support harassing the author, productively, or steering clear. As every time you update the plugin, you will need to make a similar change and likely on a different line of code with how this plugin was built.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Post Types, Please.’ is closed to new replies.