This plugin simply create posts in your blog from selected twitter searches. Good work with this plugin.
Fork Me on GitHub https://github.com/badbreze/twitter-posts-to-blog.git
Built by @iWafer / Damian Gomez
For my projects see http://www.divenock.com/projects/
Want more functionality or some modifications? Ok tell me wath you want and i try to add or modify the plugin functions
Copy the plugin into the WordPress directory ( wp-content/plugins/ )
Activate plugin from admin control panel
Create your twitter application here:
https://dev.twitter.com/apps/new
All these data can be found on the application admin panel under the tab “OAuth tool”.
If not configured correctly this plugin DOES NOT work.
This plugin create new menu under Settings ( Settings -> Twitter To WP )
Follow the description in order to configure the plugin
This plugin periodicaly pick tweets from tag,username or some text like this:
https://twitter.com/search?q=%40iWafer&src=typd and for each tweet create one post in your blog.
In plugin settings page there is a tab called “Post customization” where you can choose those
and more options for each tweet post this plugin publish
Yes you can exclude authors or words from the main configuration tab of the plugin
Formatting is easy to use, you can choose what you want to see in every post you publish, for egsample, you can set as title something
like this:
Tweet from %author%
and the body content like this:
<img src="%avatar_url%" alt="%author%"/> %author%: %tweet%. <a href="/">Back to Home</a>
And your tweet result is something like:
Tweet from iWafer [IMAGE] iWafer: @divenock hello friend im the #best. Back to Home
This is the list of codes you can use in the formatting fields
%tweet% The text of the tweet %author% The author name of this tweet %avatar_url% An url to the author avatar for this tweet %tweet_url% Url of this tweet in twitter.com %tweet_images% An html block of all images in the tweet
You can search tweets with images using this filter in your query string
filter:images
Or you can exclude images with the same filter but with a – in front of it
-filter:images
You can search replies or mentions using these filters in your query string
filter:mentions filter:replies
Or you can exclude replies with the same filters but with a – in front of it
-filter:mentions
-filter:replies
In some cases hosters have security setting in their configuration or firewalls or some other think like these,
if you have problems with images in tweets the main problem maybe is the “allow_url_fopen” PHP setting,
normaly you can request the activation of this function to enable the grabbing of images
Here the list of actions with a small description
dg_tw_before_images_placed
This action runs before the insertion of the image (from twitter) in the post
dg_tw_images_placed
This action runs after the insertion of the image (from twitter) in the post (runs only if you choosed to insert the
image as preview or as content
dg_tw_after_post_published
This action runs after the insertion of the post, the only parameter gived is the id of the post
Yes you can, usin filter you can edit some parts of the plugin engine without edit it, keeping the ability to
update the plugin without lost any costomization made by you. Filters are listed here.
dg_tw_before_post_tweet
Allow to edit the post data before it be published, is and array with and array containing infomations for “wp_insert_post”
dg_tw_the_author
Filter the author name
dg_tw_the_author_link
Filter the html link to the author page on twitter
All posts made by this plugin are created with some metas for those who want cusutomize their theme for tweets,
here the collected post metas:
dg_tw_query
The query string used to pick up this post
dg_tw_id
The id of the tweet in this post
dg_tw_author
The author name of the tweet in this post
dg_tw_author_avatar
The avatar url of the author