image not found in media library

I can only take a guess at this. Is the image you want to change a background image (using CSS)? – if you goto the page, use your web inspector tool. You should then be able to see where image url is coming from.

Upload multiple image with media_handle_upload with multiple file field [duplicate]

You can try adding the input file field once and using then using jQuery to add more fields when clicking add more. Here are the steps Register your setting using register_setting function Create Menu using add_menu_page. This also requires a calback function Add the thickbox and media-upload script using wp_enqueue_script and wp_enqueue_style Use the call … Read more

Large image not showing dimensions in Media Library

I see this happen when WP runs out of memory or time while processing large images. The image resizing, including setting the attachment custom fields for the dimensions, doesn’t complete. It can be the image dimensions (uncompressed file size really) rather than jpeg file size that are the problem, as the image is decompressed into … Read more

How to get the title of the random images from media library?

Your first function get_images_from_media_library() only returns images guid, I’d suggest to extend it by returning all image datas : function get_images_from_media_library() { $args = array( ‘post_type’ => ‘attachment’, ‘post_mime_type’ =>’image’, ‘post_status’ => ‘inherit’, ‘posts_per_page’ => 6, ‘orderby’ => ‘rand’ ); $query_images = new WP_Query( $args ); $images = array(); foreach ( $query_images->posts as $image) { … Read more

WordPress Attachments with old images

To get all featured images belonging to a certain post type, you’d have to get all those posts and the loop through them to get the featured image. Like this: $query = new WP_Query( array( ‘post_type’ => ‘yourposttype’, ‘posts_per_page’=>-1, )); $thumb_list = array (); if ( $query->have_posts() ) { while ( $query->have_posts() ) { $query->the_post(); … Read more

Custom taxonomy filter for media

You can add the taxonomy parameter. function add_image_category_filter() { $screen = get_current_screen(); if ( ‘upload’ == $screen->id ) { $dropdown_options = array( ‘taxonomy’ => ‘YOUR_TAXONOMY’, ‘show_option_all’ => __( ‘View all categories’, ‘iCats’ ), ‘hide_empty’ => true, ‘hierarchical’ => true, // default is cat which wouldn’t filter custom taxonomies ‘value_field’ => ‘slug’, ‘name’ => ‘YOUR_TAXONOMY’, ‘orderby’ … Read more

are unattached media files a problem?

There are no real runtime or developmental issues you can run into when having unattached media. The Media Library is a place for you to keep any past or future media ( whether it be images, pdfs, docs, etc. ). You don’t need to go through and ensure that every media is attached to any … Read more

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