Social Media Shortcodes


This plugin registers shortcodes for the following websites, social service on the left, format for the shortcode on the right:

Service / shortcode version

  • Blogger [blogger]
  • BookHype [bookhype]
  • Colourlovers [colourlovers]
  • DeviantArt [deviantart]
  • Digg
  • Dribbble [dribbble]
  • Etsy [etsy]
  • Facebook [facebook]
  • Flickr [flickr]
  • Flipboard [flipboard]
  • GitHub [github]
  • Goodreads [goodreads]
  • HackerNews [hackernews]
  • IMDb [imdb]
  • Instagram [instagram]
  • Last.FM [lastfm]
  • LinkedIn [linkedin]
  • Myspace [myspace]
  • Patreon [patreon]
  • Pinterest [pinterest]
  • Reddit [reddit]
  • Slideshare [slideshare]
  • SpaceHey [spacehey]
  • Soundcloud [soundcloud]
  • TikTok [tiktok]
  • Twitch [twitch]
  • Twitter [twitter]
  • Vimeo
  • X [x]
  • Yelp [yelp]
  • YouTube

All examples updated for v1.1

Example 1:

[twitter name="JoeSomeone" text="some text you want the link to appear as"]

results in this on your post/page:

<a href="" title="JoeSomeone's Twitter profile" class="twitter_smsc">some text you want the link to appear as</a>

Example 2:

[twitter name="JoeSomeone"]

results in this on your post/page.

<a href="" title="JoeSomeone's Twitter profile" class="twitter_smsc">JoeSomeone (Twitter)</a>

Example 3:

[twitter name="JoeSomeone" target="_blank"]

results in on your post/page.:

<a href="" title="JoeSomeone's Twitter profile" target="_blank" class="twitter_smsc">JoeSomeone (Twitter)</a>


function example_add_site( $sites ) {
    $sites['somesite'] = array( 'Some Site', '' );

    //Return the $sites array
    return $sites;
add_filter( 'smsc_shortcodes', 'example_add_site' );

function example_add_classes( $classes ) {
    $classes[] = 'someclass';

    return $classes;
add_filter( 'smsc_classes', 'example_add_classes' );

function example_change_final_link( $output, $shortcode ) {
    if ( 'somesite' == $shortcode ) {
        $output_new = $output . ' <--Awesome profile!';

    return $output_new;
add_filter( 'smsc_final_link', 'example_change_final_link', 10, 2 );


  1. Search for “Social Media Shortcodes” via your WP Admin plugin installer and activate.
  2. Write some blog posts.
  3. Link some social media sites profiles.
  4. You look very nice today, did you get your hair did?
  5. Ignore what Grumpy Cat thinks of your post. It’s wonderful.


Non ci sono recensioni per questo plugin.

Contributi e sviluppo

“Social Media Shortcodes” è un software open source. Le persone che hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.




  • Added: X and SpaceHey.
  • Updated: confirmed 6.5.3 compatibility.


  • Updated: confirmed WP 6.2.2 compatibility.


  • Added: Blogger, BookHype, DeviantArt, Etsy, Flipboard, Goodreads, HackerNews, IMDb, Instagram, Patreon, Pinterest, Soundcloud, TikTok, Twitch, Yelp
  • Removed: Foursquare, OKCupid, ProgrammableWeb, Scribd
  • Updated: Cleaned up more code to modernize.


  • Cleaned up code. Should not affect anything.
  • Removed: delicious, Favstar.FM, forrst, StumbleUpon.


  • Rewrote the plugin as a PHP Class.
  • Added or amended three filters for developers to use: “smsc_shortcodes”, “smsc_classes”, “smsc_final_link”
  • Updated default site list


  • Added classes to the link markup based on social media site. Twitter will get ‘class=”twitter_smsc”‘ and so on. Added optional target parameter to shortcode in case someone wants to open in different browser windows.


  • Added is_array() check after filter and some function documentation.


  • Added filter for users to add their own sites.


  • Initial upload