How to show file size of featured image? [duplicate]

Following function calculate file size, just you need change ‘/myfile/image.jpg’ with your featured image variable. <?php function file_size($url){ $size = filesize($url); if($size >= 1073741824){ $fileSize = round($size/1024/1024/1024,1) . ‘GB’; }elseif($size >= 1048576){ $fileSize = round($size/1024/1024,1) . ‘MB’; }elseif($size >= 1024){ $fileSize = round($size/1024,1) . ‘KB’; }else{ $fileSize = $size . ‘ bytes’; } return $fileSize; … Read more

How to get customable image header?

Add the below code in functions.php File of your theme. It will tells your theme to support custom headers: $defaults = array( ‘default-image’ => ”, ‘width’ => 0, ‘height’ => 0, ‘flex-height’ => false, ‘flex-width’ => false, ‘uploads’ => true, ‘random-default’ => false, ‘header-text’ => true, ‘default-text-color’ => ”, ‘wp-head-callback’ => ”, ‘admin-head-callback’ => ”, … Read more

Create decorative image border with CSS? [closed]

These links can help you get started: https://stackoverflow.com/questions/33759102/wave-border-in-css https://stackoverflow.com/questions/25895895/creating-a-droplet-like-border-effect-in-css/25903879#25903879 You can do an effect like this using pseudo-elements and css3. You could even turn the border into an SVG: .divider { border: 32px solid transparent; border-image:url(../svg/wave_96x96_border-image.svg) 32 round round; background-color: #3c93c9; } Good luck.

Uploaded Media Images on Site

If you mean deleting from your Media Library, then yes, once they’re deleted from your Media Library, they won’t show up in your posts or pages any more—unless cached in some way by search engines and so forth.

How can we see which posts don’t have a featured image or it doesn’t exist anymore?

In form of a shortcode: add_shortcode(‘nofeatures’, ‘wpse_51768_shortcode’); function wpse_51768_shortcode() { $posts = get_posts( array(‘numberposts’ => -1) ); foreach ( $posts as $post ) { $featured = get_the_post_thumbnail( $post->ID, ‘thumbnail’, null ); if ( $featured ) echo ‘Has Featured Image: ‘ . $post->post_title . ‘<br />’; } } [update] The following outputs the posts that don’t … Read more