Custom Post Types, Please.
-
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;
else
return false;
}
|| end referenceIt 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).
- The topic ‘Custom Post Types, Please.’ is closed to new replies.