WordPress.org

Plugin Directory

TK Shortcode Link

Create links with a shortcode. It's that simple.

Create links with a shortcode. Comes in handy in places where HTML tags aren't allowed and/or keep getting encoded or something.

Basically, just a utility plugin.

Accepts 3 parameters:

  • url
  • target (automatically adds the leading underscore)
  • class

Examples:

  • [tklink url="http://www.nike.com/"]Just do it[/tklink]
    • Outputs: <a class="tklink" href="http://www.nike.com/">Just do it</a>
  • [tklink url="http://www.pagelinestheme.com/" target="blank"]Open PageLinesTheme.com in a new window[/tklink]
    • Outputs: <a class="tklink" href="http://www.pagelinestheme.com/" target="_blank">Open PageLinesTheme.com in a new window</a>
  • [tklink url="http://www.google.com/" class="googlie" target="parent"]A googglie Google link with parent target[/tklink]
    • Outputs: <a class="googlie" href="http://www.google.com/" target="_parent">A googglie Google link with parent target</a>

Developers may contribute at https://github.com/cliffordp/TK-Shortcode-Link

FYI:

  • All links have a class of tklink added unless you specify your own class per link (see examples above)
  • No styling of tklink or otherwise is added via this plugin.
  • If you don't know what classes are, you can ignore. It's for styling (i.e. look and feel).

Requires: 2.5.1 or higher
Compatible up to: 4.2.3
Last Updated: 2015-4-28
Active Installs: 10+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1