Discuss on Twitter | Nick Grossman | comments

Discuss on Twitter | Nick Grossman | comments,twitter


Enable commenting on your posts via Twitter.

Posts will get a “Discuss on Twitter” button, which will prompt visitors to reply to the original tweet about the post, as well as a “View Discussions” button which will link to existing tweets about the post.

Each new post will be auto-tweeted (requires the WP to Twitter plugin and a Twitter Developer account).


Simple Installation

The simplest way to start is to install and activate this plugin, which will enable a “View Discussions on Twitter” button as a template tag.

Include the following template code where you would like the “View Discussions on Twitter” button to appear (single.php or similar):

<?php if (function_exists('discuss_on_twitter_button')) { discuss_on_twitter_button(); } ?>

Inserting this button tag will link to a Twitter search looking for the URL of your post.

Note: the Simple installation does not enable auto-tweeting of new posts, or the prompting of direct replies to a tweet about the post. But it is the easiest way to get started.

Advanced Installation

The advanced installation enables auto-tweeting of new posts from your account and direct connection between the “Discuss on Twitter” button and the tweet about the post.

The advanced installation builds upon the awesome WP to Twitter plugin by Joseph C. Dolson.

After completing the steps for Simple Installation, above, do the following:

  1. Install and activate the WP to Twitter plugin.

  2. Set up your Twitter Developer account and create a new app for your site. This may require waiting for approval from Twitter if you are setting up your developer account for the first time.

  3. In the WP to Twitter settings under “Twitter Connection” configure your API keys and secrets, as per the WP to Twitter documentation.

In the WP to Twitter settings under “Basic Settings”, ensure that “Update when Posts are published” is checked. This will ensure that a new tweet is posted to your timeline when you publish a post. (see screenshots)

In the WordPress create/edit post screen, you’ll notice a new sidebar menu called “WP to Twitter”. This includes an option to “Tweet” or “Don’t Tweet” when a new post is published. (see screenshots)

For new posts, where tweets are created upon publishing, the “Discuss on Twitter” button will tee-up a reply to the original tweet and the “View Discussions” button will link to the tweet and its replies.

For older posts which do not have a tweet associated with them, the “Discuss on Twitter” button will @mention your account, including the link to the post, and the “View Discussions” button will link to a search for mentions of your post by URL.

Plugin author

Nick Grossman

Plugin official website address

If you encounter problems in using the Discuss on Twitter plugin, you can comment below, and I will try my best to help you solve the problem

Leave a Comment

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