Support » Plugin: Tweetable » Removing Tweetable from private posts

  • Private posts are also showing the retweet button. This obviously does not make sense as anyone clicking the tweeted link who is not logged in to my blog will get a 404 error page.

    Is there a way to prevent the retweet button being added to private posts?

    Best regards, Brian

Viewing 4 replies - 1 through 4 (of 4 total)
  • Solved this… Modify line 228 of tweetable.php

    if (is_single() && $installed) {
    if (is_single() && $installed && $post->post_status == 'private') {

    Apologies slight typo (should be !=) i.e.

    if (is_single() && $installed && $post->post_status != 'private') {

    Actually I am wrong. After properly testing (too many windows open!) I cannot get this to work.

    Any input greatly appreciated.

    OK, finally I got it…

    after line 225:
    $installed = get_option('tweetable_account_activated');
    $post = get_post($post_id);

    The add the if statement as per above. My php id getting rusty…!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Removing Tweetable from private posts’ is closed to new replies.