filesize( get_attached_file( $attachment->ID ) );
better you can share your site.
Related Posts:
- Add multiple images to a page sidebar
- How do I get attachment_id?
- Put the media uploader in a metabox
- How to List all Sidebars in a Metabox
- I need a Simple image uploader with a simple screen. WP default has too many options.
- Best way to programatically add “rel” attributes to page and post images
- save_post not working with attachments
- Show how many images are attached to a post/page on compose page
- How do you List all Sidebars in a Metabox
- List all sidebars in metabox
- Upload attachment from external site
- Load different single.php templates according to post layout selection
- Adding metaboxes to attachment pages
- Selecting a dynamic sidebar via metabox in wordpress
- dynamically get post attachment while editing
- How to set default screen options?
- Does WordPress have a “Form API”?
- Check if post has attachments (not image)
- Add the sidebar/widget editor to the post edit screen?
- List most recent image uploads, but only for specific custom post type
- How do I detach images from posts?
- Getting post-thumbnails from another WP site
- Hiding a theme’s meta box
- remove missing image attachments
- custom fields for attachments?
- Get attachment ID of author_meta image – Attachment Metadata
- upload image in a meta box
- Getting jQuery sortable items in custom metabox
- Change image link: wp_get_attachment_link
- Automatically wrap post image in div
- Open the attachment details modal
- copy attachments to another post type and change attachment url
- remove_meta_box for all post types doesn’t seem to work
- Regenerate missing _wp_attachment_metadata
- Make alt text required when setting a featured image
- make a excerpt on data from a meta box?
- How to put Periods and Spaces for Array Values (Meta Key)
- Correct Way To Show Custom Taxonomy for Image Attachments on Template File
- Styling images coming from another blog
- Add_meta_box not appearing, but does appear in screen options
- Change the post date from a meta box
- update_post_meta and get_post_meta not working
- Repeatable custom meta fields
- Get all meta boxes values
- media_sideload_image with rewritten urls?
- Get the bare URL for an attachment
- Metabox saves on Update or Publish, but not on Saving Draft
- Checkbox on a meta box using CMB2 Plugin
- Decide Metabox Configurations for All Users
- metabox select – frontend display
- Exclude featured image from attachment loop
- Multiple images in one attachment page
- Set default post author to none on new post
- how to save and get selected item id list with add_meta_box
- Remove anchor tag from meta box link
- I have a site where attachments in the wp_posts table have guid values of guid, how did this happen?
- Help to upload post attachments from Ajax
- cannot grab post meta from extended Walker_Category class properly
- Resetting admin post form on JS validation fail
- Create more Meta Boxes as needed
- Add a meta box to ALL Pages
- How to remove some metaboxes for CPTs?
- How do you import images from a URL in your post?
- How to add metabox ONLY to specific WooCommerce product type [closed]
- Uploaded attachment not set as featured image
- Add metabox without the container
- wpalchemi metabox doesn’t show value from my post type
- HTML Table creator in metabox to put into post theme
- How to use Gutenberg in CMB2?
- How to test if there are no more previous or next image on attachment page?
- How can i get multi checkboxes value in metbox?
- Get Attachment Image Class by attachment id
- save radio button selection in post-meta on submit
- ShortCut on meta boxes
- Post edit screen: How to check if meta_box is registered?
- Get all image in media Gallery with alt/title?
- How to ‘clone’ select metabox options with a callback function? [closed]
- Saving multiple fields (dropdown and text) in custom metabox
- Filter not applied to all image sizes
- display all registered meta boxes
- where can i see the registered new field for posts using register_meta() ?
- update_post_meta doesn’t work
- featured image in custom poste type (backend)
- Get “Image CSS Class” value from the Advanced Options section
- Uploaded images not showing properly using wordpress
- How To Query All Attachment Images Found In Post Galleries
- Ridiculous problem with CDATA [duplicate]
- Can’t save drop down select date in meta boxes
- attachment.php & flexslider—linking thumbnail to specific image
- WordPress check if value equals and echo “checked”
- Custom metabox for file upload return empty filename
- Video slideshow
- Meta Box Value not saving / populating?
- How to set default screen options?
- Reload meta box content with AJAX
- why esc_url not working in smartmetabox
- Change Default Custom Fields Metabox Name on cctm plugin
- Form submit from modal window to parent window
- Stop Attachment image names from taking top level permalink
- My meta box don’t want to save value