Why doesn’t the Media Browser use thumbnail sized images?
As per the comments, my theme was missing the system default medium image size. Applying @birgire’s workaround to make the system use a custom size did the trick.
As per the comments, my theme was missing the system default medium image size. Applying @birgire’s workaround to make the system use a custom size did the trick.
Change image in media library at specific time
Found an answer using Shortcode which helped: How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()? My working code now looks like this: // Extract the shortcode arguments from the $page or $post $shortcode_args = shortcode_parse_atts(get_match(‘/\[gallery\s(.*)\]/isU’, $post->post_content)); // get the ids specified in the shortcode call $ids = … Read more
Got it to work $temp_post = get_post($post_id); $user_id = $temp_post->post_author; $user_login = get_the_author_meta(‘user_login’,$user_id); echo $user_login;
If you know the taxonomy name the plugin uses, you should be able to use the_terms pretty easily. You could basically plop this in between <?php foreach( $images as $image ): ?> and <?php endforeach; ?> where you want the terms to be displayed: <?php the_terms($image->ID, ‘YOUR_TAXONOMY_NAME’); ?> If you want to get fancy, you … Read more
The best answer I had was to add a   in the function callback html at the end of the section tag. This forced the curser out of section wrapper in the WYSIWIG of WordPress. It’s not the perfect fix but it worked. function html5_insert_image($html, $id, $caption, $title, $alt, $align, $url) { $url = wp_get_attachment_url($id); … Read more
Extra metadata for media items
In media library, the images are listed using mysql query which retrieves from your posts table. So it won’t display the folders and sub folders in it. You can create categories and taxonomies to maintain it. If you wish to use plugins. Try some media management plugins. I can suggest you. enhanced media library, media … Read more
This plugin finds the image files which have not been used within a post or page and displays them for deletion from both your uploads directory and database. Images you have uploaded and used in other area’s of your site will also be displayed. Only problem is it hasn’t been updated in a while. WordPress … Read more
Like most page loads in WordPress, WP_Query is intimately involved meaning pre_get_posts is your friend. Proof of concept: function step_2($qry) { $qry->set(‘post__not_in’,array(468,303)); } function step_1() { add_action(‘pre_get_posts’,’step_2′); } add_action(‘load-upload.php’,’step_1′); I’m using the load-upload.php hook to isolate the filter to the “Library” page. If you’ve changed the uploads folder for your avatars you’ve already got some … Read more