Support » Plugin: Shareaholic | share buttons, related posts, social analytics & more » Custom Post Types rendering Shareaholic Buttons

  • Resolved Josh


    I’m Josh, developer of Ultimate Tinymce.

    I have a feature in my plugin which uses a custom post type as a widget builder. The custom post type is registered to WP under a unique name (prefexed with an identifier).

    A client brought to my attention the Shareaholic buttons are appearing in the widget areas, where the custom post type is being used as the widget content. Because of this, the buttons are appearing twice: once in the main content area (as expected); and a second time in the sidebar widget area (undesired).

    I have downloaded and installed your plugin to test. After exploring the admin panel; I notice there is only the option to add share buttons to Posts or Pages.. but nothing about custom post types (such as mine, and many others I’m sure).

    My question:

    Would you consider adding an option to allow/disallow the buttons (and related content) to appear on custom post types?

    Thank you very much!


    I was just doing a little digging around in your code. I think (please excuse my directness; I know you know your plugin better than I) in the ‘utilities.php’ file, on line #289, is a function which identifies the webpage as “index, page, post, or category”.

    I’m pretty sure this is where the issue is originating.

    Again, thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • I was able to perform a workaround by providing an option to the user to allow/disallow additional content being added by other plugins adding content using `the_content’ filter.

    I basically ran an if/else on the options checkbox: If wanting to apply the additional content, it applies the filters tot he content; and if it is not desired, it simply doesn’t apply the filters.

    An easy workaround which provides the best of both worlds!
    Man I love WordPress 🙂

    This also happens with the Custom Post Widget plugin. Widget areas that contain these custom post types, ‘content_block’, will get the buttons auto-appended. Looking for a solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom Post Types rendering Shareaholic Buttons’ is closed to new replies.