CC-IMG-Shortcode

CC-IMG-Shortcode Install Statistics

0
100%
Today: 0 Yesterday: 0 All-time: 863 downloads
CC-IMG-Shortcode Icon

Try plugin: CC-IMG-Shortcode

We'll create fresh WordPress site with CC-IMG-Shortcode installed. You have 20 minutes to test the plugin after that site we'll be deleted.

Takes ~10 seconds to install.

About CC-IMG-Shortcode

This plugin adds the [img] shortcode which replaces the `` html tag.

0


0


0


0


0

updated: 2 years ago
since: 7 years ago
author: Clearcode

Description

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'; } );