Ok, I found the answer (actually paid a programmer to do it)
modify to
/* Add the link to the array if there's an image and if $is_intermediate (4th array value) is true or full size. */
if ( !empty( $image ) && ( true == $image[3] || 'full' == $size ) )
$links[] = "<a class="image-size-link" href="https://wordpress.stackexchange.com/show-image.php?path={$image[0]}" target=_blank>{$image[1]} × {$image[2]}</a>";
}
create a file, upload it in your root (or where you want) and add this code in it:
“/>
hope this helps!
Related Posts:
- remove links from images using functions.php
- How to add classes to images based on their categories?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to add a rel attribute to images that contains their categories?
- Best way to programatically add “rel” attributes to page and post images
- Image rotation fails to regenerate custom sized thumbnail
- Display images that are not in the content
- How to hide image-url if no attachment?
- What are the meta fields for an attachment?
- Different image using srcset function
- Auto delete content in specific folder inside media library
- How to update an image attachment’s alt text from a custom field when saving a post?
- Missing feature image link function
- Add image size if page template
- Set JPEG compression for specific custom image sizes
- Issue with wp_get_attachment_image() and SVG file type
- How to add a class to the attachment images
- Removing default image size list in Media Box
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- How to create thumbnails for PDF uploads?
- Is it possible to maintain image aspect ratio when scaling images?
- Generating Responsive Background Image Sizes in PHP
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Gallery images titles – get from post
- Remove images from get_the_excerpt
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Display height and width properties with the_post_thumbnail() or related function
- Custom image size in Media Dropdown
- Removing the first image in content
- Function to auto-set a featured image that is already in use
- Actions according to image type and size
- What is the “icon” parameter in wp_get_attachment_image_src used for?
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Overwrite Parent Theme add_image_size in Child Theme
- Images uploaded using media uploader are appearing upside down
- Find first image on paginated post for Pinterest
- Count total number of images in post and echo results as number
- How can you limit srcset on a single type of page?
- Automatically wrap multiple images in div
- Overwriting Parent Theme’s Image Sizes
- Load post attached images on a single page site with fancybox
- Twentyten Child Theme: header images display messed up in admin panel
- Disable auto-resizing of uploaded images, but only for certain filename
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- show first 3 thumbnails of posts in different sizes [closed]
- Remove after images
- Getting custom image size URL in functions
- Set spesific size of featured images
- Can’t generate thumbnail images
- media resize/crop possibilities?
- Control the srcset much more (not all sizes in it each time)
- Way to store featured image width and height in two separate variables?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Limit dimensions of “Full” size images
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- attachment page template? only show attachments for current post?
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- How to add a new image size and apply it to posts only?
- Remove attachment page for audio media type only
- Problem in using Customizer
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- Custom Image Size in Insert Media
- Featured Image keeps cropping
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- Need To Resize Images Exactly Without Losing Image Details
- Custom image sizes showing in Classic Editor only when upladed directly to post
- how can I change all wordpress media file url to custom cdn url?
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- How to change images url in function.php?
- WP_Query for Attachments not working as expected
- Class parameter in get_avatar args doesn’t get added to output
- Can You Set A Minimum Image Dimension For Resizing Images?
- blank page with wp_get_attachment
- (Divi): How to make WordPress load images of specific size for Blurb modules on given page with a funciton?
- Remove all video attachment, both files and post/postmeta from database?
- Featured image on archive page based on post type
- Printing medium sized image
- Why am I losing image quality on my site?
- Replace image attributes for lazyload plugin on image elements with specific class
- Using Switch Statement to Change Image According to Last Digit of Topic ID
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Different body image backgrounds on different pages, posts and categories
- Update add_image_size
- Function the_content
- Set thumbnail from URL, by grabbing image in functions.php
- Dynamically adding Captions to images
- Full size image option removing problem
- Image width issue in IE [closed]
- image_size with respect to aspect ratios
- How to resize image from import image url?
- How to crop image in WordPress with aspect ratio for any size of image
- How to add height and width dimensions automatically to archive descriptions
- How to overwrite image if it already exists – WordPress, Gravity form
- Disable Attachment Page Except for Category