Banner for My Upload Images
Create metabox with media uploader. It allows to upload and sort images in any post_type. Wordpress Tutorial
Noted That:
  • To install correctly this my-upload-images.zip .
  • Fisrt Download the my-upload-images.zip to your computer
  • Extract/Open my-upload-images.zip to Your Computer.
  • Then, Find readme.txt file inside my-upload-images.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:

Step-1 : Download " my-upload-images.zip " to Your Local Computer.

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

Login to Wordpress My Upload Images

Step-3 : Then, Click on " Plugins " + " Add New " from left Side Menu of Dashboard.

Go to Plugin Install My Upload Images

Step-4 : Now, Click on " Upload Plugin " button.

Click Upload Button My Upload Images

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

Upload Plugin My Upload Images

Step-6 : Now, Click on " Active Plugin "

Activate My Upload Images

Step-7 : Then, See left Side Menu. " My Upload Images " folder is added on left Side Menu. Now, Click on " My Upload Images " folder.

Noted that: If you do not see " My Upload Images " folder on left Side Menu then, see at left Side Menu " Settings " or " Tools ".

Step-8 : Now you configure yourself oR Watch video tutorial below about My Upload Images Configurations and Settings or How to work " My Upload Images " 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 " My Upload Images " Activated Plugin from Plugin List.
  4. Then, Click on " Settings " from Plugin that is My Upload Images
  5. Now, Edit/Add/Config the setting and Click on " Save Changes " button,
WP Plugin Setting



Guide
  1. Copy the ‘my-upload-images’ folder into your plugins folder.
  2. Activate the plugin via the ‘Plugins‘ admin page. The plugin requires the setup of selecting post_types which you want to add metabox.

Example usage

The image IDs are stored in [‘my_upload_images’] custom field. When to output the IDs into your template file, write codes like below.

Output images and links.
ID, ‘my_upload_images’, true );
if ( $my_upload_images ): foreach( $my_upload_images as $img_id ):
$full_src = wp_get_attachment_image_src ($img_id,’fullsize’);
if ( !$full_src ) continue;
echo
‘.wp_get_attachment_image ($img_id,’thumbnail’).’ ‘.”\n”;
endforeach; endif;
?>

Output images and links with attributes.
ID, ‘my_upload_images’, true );
$slider = ”;
if ( $my_upload_images ):
foreach( $my_upload_images as $img_id ):
$full_src = wp_get_attachment_image_src ($img_id,’fullsize’);
if ( !$full_src ) continue;
$file = get_post( $img_id );
$img_title = $file-> post_title; // title
$img_caption = $file-> post_excerpt; // caption
$img_desc = $file-> post_content; // desctiprion
$img_alt = get_post_meta( $img_id, ‘_wp_attachment_image_alt’, true ); // alt
$thumb_src = wp_get_attachment_image_src ($img_id,’thumbnail’);
$slider .=
“\t”.’

  • ‘.”\n”.
    “\t\t”.’ ‘.”\n”.
    “\t\t\t”.”.”\n”.
    ( $img_title ? “\t\t\t”.”.$img_title.”.”\n” : ” ).
    ( $img_desc ? “\t\t\t”.”.wpautop( $img_caption ).”.”\n” : ” ).
    “\t\t”.’
    ‘.”\n”.
    “\t”.’
  • ‘.”\n”;
    endforeach;
    echo ‘

      ‘.”\n”.$slider.’

    ‘.”\n”;
    endif;
    ?>

    Attention

    The custom field doesn’t have multiple values, it just has become an array in a single value. When you call them with ‘get_post_meta’ function, do not set the third parameter to ‘false’.


    Name