2017 © Pedro Peláez
 

wordpress-plugin bb-twitterfeed

Minimal WordPress Twitterfeed plugin.

image

baardbaard/bb-twitterfeed

Minimal WordPress Twitterfeed plugin.

  • Tuesday, July 4, 2017
  • by baardbaard
  • Repository
  • 2 Watchers
  • 2 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 7 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

Twitterfeed

Twitterfeed is a WordPress plugin that gives you a Twitter feed without any styling., (*1)

It uses Twitter-API-1.1-Client-for-Wordpress to connect to the Twitter API and uses kwi-urllinker to find URL's in the tweets and turn them into links. It uses Mustache to render te templates., (*2)

  1. Install this plugin with Composer by running composer require baardbaard/bb-twitterfeed or add it to your project's composer.json, like this: { "require": { "baardbaard/bb-twitterfeed": "0.5" } } Make sure require the autoload.php that's generated by Composer somewhere in your project. wp-config.php would be a good location.. You can also download this plugin and run composer install in the root of this plugin's folder.
  2. Create a Twitter app and get your credentials at https://dev.twitter.com/apps.
  3. Enter your Twitter key and secret in the WordPress Dashboard: Settings > Twitterfeed.
  4. Add and activate the plugin and use the following code in your template:
<?php 
$twitterfeed->create_feed( array(
    'user' => 'baardbaard',
    'number_of_tweets' => 5, // optional
    'profile_image_size' => 'mini|normal|bigger|original', // optional, normal = default
) );
?>

Or you can also use the shortcode:, (*3)

// Add this to your page/post/widget in your WYSIWYG editor.
[twitterfeed user="baardbaard" number_of_tweets="3" profile_image_size="bigger"]

// Or use this in your template files.
echo do_shortcode( '[twitterfeed user="baardbaard" number_of_tweets="3" profile_image_size="bigger"]' );

The output looks something like this:, (*4)

<ul class="tweets">
    <li class="tweet">
        <a href="https://www.twitter.com/baardbaard" class="tweet__user-photo"><img src="https://pbs.twimg.com/profile_images/545552771378712577/gST9ZRmm_normal.jpeg"></a>
        <a href="https://www.twitter.com/baardbaard" class="tweet__user">Stef Thoen</a>
        <span class="tweet__content">“Don’t let your dreams be dreams. Yesterday, you said tomorrow.”</span>
        <span class="tweet__time">about 4 days ago</span>
    </li>
</ul><!-- /.tweets -->

Roadmap

0.6

  • Make CSS classes replaceable with custom classes
  • Use caching to save tweets
  • Rewrite to use PSR-2

The Versions

12/01 2017
11/01 2017

dev-develop

dev-develop https://github.com/baardbaard/bb-twitterfeed

Minimal WordPress Twitterfeed plugin.

  Sources   Download

GPLv3

The Requires

 

The Development Requires

plugin wordpress

13/12 2016
06/09 2016
20/07 2015

v0.2

0.2.0.0 https://github.com/baardbaard/bb-twitterfeed

Minimal WordPress Twitterfeed plugin.

  Sources   Download

GPLv3

The Requires

  • php >=5.4

 

plugin wordpress

17/07 2015

v0.1

0.1.0.0 https://github.com/baardbaard/bb-twitterfeed

Minimal WordPress Twitterfeed plugin.

  Sources   Download

GPLv3

The Requires

  • php >=5.4

 

plugin wordpress