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.

Hello, I am Arun Basil Lal. Thank you for reading!

I am a WordPress product developer and creator of Image Attributes Pro. I am passionate about solving problems and travelling the world.

Divi WordPress Theme - My Review

Divi WordPress Theme
Divi is a WordPress theme that web designers do not want you to know. It comes with a drag-and-drop theme builder. You can build beautiful looking unique websites without touching a line of code. Just choose from one of the many pre-made layouts, or pick elements and arrange them any way you like.

Divi is every WordPress developer's wet dream. Surprise your clients with neat responsive websites and have fun building them.

Divi comes from Elegant Themes. If you enjoy building websites, you *need* an Elegant Themes membership. 87 beautiful themes and 5 plugins for the cost of less than a candy-bar each!


Note: I am an avid user of Divi myself and this is a honest review. I wouldn't recommend something that I do not personally find amazing.

6 Comments.

  1. Doug C. says:

    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. 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 says:

    Thanks a million! Great change to this plugin! 🙂

    Dave

Leave a Reply

Your email address will not be published. Required fields are marked *

*