TK Shortcode Link

0

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

Version
Last updated
Active installations
WordPress Version
Tested up to
Rating
Total ratings
Tag
This plugin is outdated and might not be supported anymore.

Description

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="https://www.nike.com/"]Just do it[/tklink]
    • Outputs: <a class="tklink" href="https://www.nike.com/">Just do it</a>
  • [tklink url="https://www.wordpress.org/"][/tklink]
    • Outputs: <a class="tklink" href="https://www.wordpress.org/">https://www.wordpress.org/</a>
  • [tklink url="https://www.google.com/" class="googlie" target="blank"]A googglie Google link that will open in a new tab[/tklink]
    • Outputs: <a class="googlie" href="https://www.google.com/" target="_blank">A googglie Google link that will open in a new tab</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).