Title: [Plugin: Sharedaddy] Posts Only and Custom Post Types
Last modified: August 19, 2016

---

# [Plugin: Sharedaddy] Posts Only and Custom Post Types

 *  [Karena Kreger](https://wordpress.org/support/users/karenalenore/)
 * (@karenalenore)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/)
 * I love this plugin but just need a little more control. Any suggestions are appreciated
   even if I have to hack the code a bit.
 * How do I get it to show only on posts? NOT pages.
 * Also, can I restrict certain custom posts types from displaying the share bar?
 * I thought perhaps if I stop it from auto inserting and instead let put the code
   in the template myself, I could get enough control to make it work. Any suggestions
   on how to do that?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [John Godley](https://wordpress.org/support/users/johnny5/)
 * (@johnny5)
 * [15 years, 5 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/#post-1819732)
 * Eventually the plugin will provide more control, but for now you can use the 
   filter `sharing_show` to return `true` or `false` if you want the current page
   to display sharing buttons.
 *  [kemch](https://wordpress.org/support/users/kemch/)
 * (@kemch)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/#post-1819916)
 * How would this be used in on a page template?
 *  Thread Starter [Karena Kreger](https://wordpress.org/support/users/karenalenore/)
 * (@karenalenore)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/#post-1819918)
 * John – Thanks for the heads up! I didnt even see that option at the bottom of
   the edit page. Even better as there are some pages I’d like to share and other’s
   I would not.
 * Kemch – there is a checkbox at the very bottom of each page when you are editing
   it to show or hide the sharing. Not sure if that answers your question, but it’s
   not really a template issue and don’t know if you can preset that option by template
   or not.
 *  [kemch](https://wordpress.org/support/users/kemch/)
 * (@kemch)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/#post-1819936)
 * What I wanted to do was have a home page that did not show the any sharing, but
   just simple excerpts of a couple of the most recent posts To accomplish this,
   I added this to the top of my home.php template.
 *     ```
       <?php function no_sharing() {
       }
       add_filter('sharing_show', 'no_sharing');
       ?>
       ```
   
 * I’m not sure why I had to make an empty function, but that’s the only way I got
   it to work.
 *  [gradyetc](https://wordpress.org/support/users/gradyetc/)
 * (@gradyetc)
 * [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/#post-1819987)
 * Is there any progress on the functionality Karenalenore describes above?
 * The per-page option is nice, but in a situation where you are activating this
   plugin on an established site with a significant amount of pages (around 600 
   in my case) it would be nice to globally exclude pages and/or custom post types
   by default through the settings page.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘[Plugin: Sharedaddy] Posts Only and Custom Post Types’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sharedaddy.svg)
 * [Sharedaddy](https://wordpress.org/plugins/sharedaddy/)
 * [Support Threads](https://wordpress.org/support/plugin/sharedaddy/)
 * [Active Topics](https://wordpress.org/support/plugin/sharedaddy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sharedaddy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sharedaddy/reviews/)

 * 5 replies
 * 4 participants
 * Last reply from: [gradyetc](https://wordpress.org/support/users/gradyetc/)
 * Last activity: [14 years, 7 months ago](https://wordpress.org/support/topic/plugin-sharedaddy-posts-only-and-custom-post-types/#post-1819987)
 * Status: not resolved