Disable TweetCount Plugin on Specific WordPress Pages

I have been using the BackType TweetCount WordPress Plugin to display the Re-tweet button and Tweet Count. The plugin is feature rich, but lacks one simple feature – The ability to disable it on any specific page or post.

This could be unwelcome in some cases, like when your blog homepage shows a static page and you probably don’t like to show the count. Pages are seldom re-tweeted.

Hide BackType TweetCount on Pages

I devised a simple solution using a WordPress custom Field, here is the customised Plugin.

Hide TweetCount on Pages using Custom Fields

Working

The updated version checks the presence of a custom field show_bttc and if its absent, the button is shown.The value of this custom field could be anything, it just checks for the presence of the custom field.

So if you do nothing, the re-tweet button is shown. If you add the custom field show_bttc to any post or page, button vanishes.

How to Use

If you are new to WordPress Custom Fields, you should have a look at this – WordPress Custom Fields 101.

On the Page or Post on which you wish to disable the TweetCount Plugin, use a custom field with following details:

key: show_bttc

value: false

Save or Update the page and the button should be gone.

Download

Download the Customised TweetCount Plugin Here. Its based on version 2.0 of the original Plugin.

If you have any concerns, let me know.



You May Also Like To Read:

  1. Add Custom Status or Notes to a Post without a Plugin
  2. Custom Image and Link for Each Post using WordPress Custom Fields
  3. Manage WordPress Pages Easily on a Drag-and-Drop Interface
  4. WordPress Plugin to Block Users and Show A “Coming Soon” Page Instead
  5. How To Create Short URL’s on your WordPress Domain without a Plugin or Script

This entry was posted in WordPress and tagged , , , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

For More Like, "Disable TweetCount Plugin on Specific WordPress Pages"
Grab the Feed or,

6 Comments

  1. Posted March 24, 2010 at 22:57 | Permalink

    I prefer the Topsy Retweet Button myself. It would be cool if I could find a custom field command for that to prevent it from showing on certain pages.

  2. Posted March 25, 2010 at 20:53 | Permalink

    This is a great tip, one of the blogs I just recently installed a TweetCount plugin for one of the blogs that I manage so this post will prove helpful.

  3. Dave
    Posted May 12, 2010 at 16:09 | Permalink

    Thanks a million! Great change to this plugin! :)

    Dave

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

  • Get Free Updates