This plugin adds the [img] shortcode which replaces the “ html tag.
Author: | Clearcode (profile at wordpress.org) |
WordPress version required: | 4.8.2 |
WordPress version tested: | 5.9.2 |
Plugin version: | 1.1.0 |
Added to WordPress repository: | 20-10-2017 |
Last updated: | 16-03-2022
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
|
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://wordpress.org/plugins/cc-img-shortcod... |
Total downloads: | 863 |
Active installs: | 10+ |
Click to start download |
This plugin adds the [img]
shortcode which replaces the <img>
html tag. It’s also enables adding new media to post/page via the ‘Add media’ button by automatically inserting the formatted shortcode code to the editor.
You can simply add the [img]
shortcode with a media ID to display:
[img 123 /]
or a fully formatted [img]
shortcode:
[img 123 align="center" size="full" caption="Sample text" title="Sample text" desc="Sample text" alt="Sample text" url="http://example.com/" /]
It’s supports srcset
and sizes
parameters.
Tips & Tricks
You can use your own html template file for displaying the img
tag by using filter:
add_filter( 'Clearcode\IMG_Shortcode\template', function() { return '/themes/clearcode.cc/templates/img.php'; } );
Screenshots
ChangeLog