Horje
When images are inserted into posts from the media library or media uploader, only the html of the `` tag and the link around it (if any) are preserve … Wordpress Tutorial

Noted That:

  • To install correctly this image-shortcake.zip .
  • Fisrt Download the image-shortcake.zip to your computer
  • Extract/Open image-shortcake.zip to Your Computer.
  • Then, Find readme.txt file inside image-shortcake.zip and Open readme.txt .
  • Now, Read the Requirements of this plugin. Which Wordpress Version and PHP Version are required to run this Plugin in Your Wordpress Site.
  • Then, Follow the Tips Below.

Start the Tips:

1. First Download " image-shortcake.zip " Plugin to your Local Computer. (Click Download)

2. Then, Login to your " yourdomain.com/wp-admin " Dashboard.

/stack/wp/e1593231376d7d849d2-4597-4fa3-a6ff-1eca18f72aab.png

3. Then, Click on " Plugins " + " Add New " from left sidemenu of Dashboard.

/stack/wp/e1593231378Screenshot20.png

4. Now, Click on "Upload Plugin" button.

/stack/wp/e1593231380Screenshot-2019-4-2AddPluginsHorjeWordPress.png

 

5. Now, Browse " image-shortcake.zip "  Downloaded plugin from your computer, Where you downloaded image-shortcake.zip According to Step – 1 Above then, click on " Install Now"

/stack/wp/e15931461531577025694plugin.png

6. Now, Click on " Active Plugin"

/stack/wp/e15932313830ca45529-bf73-4101-8178-53ae60ce549f.png

7. Then, See left sidemenu. " Image Shortcake " folder is added on left sidemenu. Now, Click on " Image Shortcake " folder.

   Noted that: If you do not see " Image Shortcake " folder on left sidemenu then, see at left sidemenu " Settings " or " Tools ".

8. Now you configure yourself oR Watch video tutorial below about  Image Shortcake Configurtions and Settings or How to work " Image Shortcake " in your WordPress site.

 

oR

After Activated Plugin According to Step-6 then,

  1. Go to " Plugins " + " Installed Plugin " from Wordpress Admin Panel Leftside Menu.
  2. or Direct go to: https://yourdomain/wp-admin/plugins.php
  3. Then, Find " Image Shortcake " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is Image Shortcake
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide

Customizing Output

The whole point of using shortcodes rather than HTML tags for images is that you can customize the markup of images in your theme. This plugin offers three primary hooks to modify the output:

  • img_shortcode_output_img_tag : Filters the output of the tag before wrapping it in link or caption
  • img_shortcode_output_after_linkify : Filters the output of the tag after wrapping in link
  • img_shortcode_output_after_captionify : Filters the output of the tag after wrapping in link and attaching caption

You can, of course, disregard the markup generated by this plugin altogether and use a template part for images if you want. This example adds EXIF data below all images containing those fields, in all post content:

in the theme’s functions.php :


 `
add_filter( 'img_shortcode_output_img_tag', 'load_image_template', 10, 2 );
function load_image_template( $_, $attributes ) { ob_start(); get_template_part( 'inline-image' ); return ob_get_clean();
} `

in a template file called inline-image.php :


 `
 "$class $align attachment-$size", 'alt' =>
 $alt, )
);
if ( is_array( $exif_data ) ) { echo '
    '; foreach ( $exif_data as $field => $value ) { echo '
  • ' . $field . ': ' . $value . '
  • '; } echo '
'; } `

Data Migration

The plugin comes with two WP-CLI commands to migrate images in your existing content into the [img] shortcode format used by
this plugin. Note: if it isn’t clear, this is an early release — use at your own risk, and make sure you’ve backed up your posts before migrating!


wp image-shortcake migrate 
 [--dry-run]

This command searches the post content of the posts specified in , and replaces any tags or [caption] shortcodes with [img]
shortcodes. Currently it only catches images added through the media library; custom img tags will not be converted.

If you add the --dry-run flag, no replacements will actually be performed, just a summary report of the changes which would have been made.


wp image-shortcake revert 
 [--dry-run]

This command finds all [img] shortcodes in the content of any of the posts specified in , and replaces them with the markup that would be generated by those shortcodes. Note that this runs any filters in your theme, so that if you have filtered the output of the shortcodes at any output, those filters will be reflected in the coverted post content.


media , images , inserted , into , posts , library , uploader , html , link , around ,

Name

Read Article
https://develop.horje.com/learn/1434/reference