Return to Snippet

Revision: 63457
at May 9, 2013 19:14 by Scoldy

Initial Code
Plugin Name: Twitter Shower
Plugin URI:
Discription: Simple shortcode
Version: 1.0
Author: Ronnie
Author URI:

add_shortcode('twitter', function($atts,$content) {
	$atts = shortcode_atts(
	 'username' => 'VeronicaDjeneva',
	 'content' => !empty($content)? $content : 'Follow me on Twitter!'
	 return "<a href='$username'>$content</a>";


Initial URL

Initial Description
Wordperss Follow with variable 
In double quotes you have ability to embed variable
post content: [twitter username='VeronicaDjeneva']Follow me Fools[/twitter]

Initial Title
Wordperss Follow with variable

Initial Tags

Initial Language