` tag.
* `imgatts`: additional HTML attributes to add to the internal `
![]()
` tag of the image.
= Page and link shortcodes =
This couple of *shortcodes* automatically generate hypertext links to pages or posts of your Wordpress installation. Target posts can be referenced by ID, by *slug*, or by *path* (a post’s URL, relative to the website’s root).
Thus, `[link href="123"]…[/link]`, `[link href="slug-of-post"]…[/link]`, and `[link href="root-page/sub-page/slug-of-page"]…[/link]` are all equivalent.
These *shortcodes* are “enclosing” (they wrap the content of the link, just like HTML tags) and they support the following parameters:
* `href`: the ID, *slug*, or *path* of the target post or page;
* `title`: the title to use in the link, if not set the target post’s title will be used;
* `class`: additional HTML/CSS classes to add to the link;
* `type`: type of the target post (defaults to “page” for `[page]` and “post” for `[link]`).
If no link content to be enclosed is provided, the posts’s title is automatically used as link text.
== Screenshots ==
1. *Shortcode* generation button with file picker.
== Changelog ==
= 1.5.1 =
* Add support for `atts` and `imgatts` attributes for `[image]` shortcodes.
= 1.5 =
* Add support for URLs in `link` attributes for `[image]` shortcodes.
= 1.4 =
* Add [page] and [link] shortcodes.
= 1.3 =
* Added localization support.
* Updated description and help.
= 1.2 =
* Added “add media” button with file picker on content editor.
= 1.1 =
* Added `didascaly` and `class` parameters.
= 1.0 =
* Initial release.