Get filenames of available image sizes

/** *** return_image_thumbnails *** – return a list of thumbnails based on filesystem report. *** @param (string) $image – Original image location. *** @return (array) $results *** @author Oleg Butuzov **/ if (!function_exists(‘return_image_thumbnails’)){ function return_image_thumbnails($image){ $extension = array_pop(explode(‘.’, basename($image))); if (!file_exists($image) || !(@getimagesize($image))) return array(); return glob(dirname($image).”https://wordpress.stackexchange.com/”.basename($image, ‘.’.$extension).’-[0-9]*x[0-9]*.’.$extension); } } usage example return_image_thumbnails(get_attached_file( $image_id ));

How can I add a Description column to the media library browser screen?

I think I’m getting hung up on this line: echo substr(strrchr($meta[‘attachment_content’], “https://wordpress.stackexchange.com/” ), 1); Yep! Try this version of the description_value function: function description_value($column_name, $id) { echo get_the_content($id); } Media items are posts of the type attachment. The description is stored in the post_content property of the post object. You can see all of the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)