Vylepšená knihovna médií

Enhanced Media Library
https://cs.wordpress.org/…dia-library/

The plugin will be handy for those who need to manage a lot of media files.

Categories and Tags for media items

Various media categories. With the plugin installed you immediately obtain Media Categories for categorizing and filtering media items in WordPress admin. This feature alone will save you hours of searching through a media library with even as few as 100 images.

Media items categorizing can be useful for the front-end as well. To insert media galleries or audio / video playlists based on media categories you have to use the familiar shortcode format like

[gallery media_category="5" category="2" limit="10" monthnum="12" year="2015" orderby="title" order="DESC"]

Metadata v taxonomiích

Category and Taxonomy Meta Fields
https://wordpress.org/…xonomy-meta/

Plugin to add custom meta fields within built in and custom taxonomies. Simply add the desired fields by going through WP-admin -> Settings ->Taxonomy Meta .
You can add following fields with category/taxonomy:

  • Image
  • Input Text
  • Textarea
  • Checkbox

Taxonomy Metadata
https://wordpress.org/…my-metadata/

This plugin implements the metadata infrastructure for taxonomy terms, so you can add custom metadata (by key) to tags, categories, and other taxonomies. The majority of the code is from sirzooro's submission to the WordPress Core Trac. The rest of the plugin is simply some hacky glue to make this work without modifying the Core. It does not implement any UI for taxonomy term metadata.

Meta for taxonomies
https://wordpress.org/…-taxonomies/

Add meta for any taxonomies. Meta is attached to taxonomy context and not terms, this way allow to have metas different for the same term on 2 different taxonomies. This plugin don't any interface on WordPress ! Only somes methods for developpers.

Taxonomy Images
https://wordpress.org/…nomy-images/

Associate images from your media library to categories, tags and custom taxonomies.

Carbon Fields
https://wordpress.org/…rbon-fields/

Developer-oriented library for WordPress custom fields for all types of WordPress content.
Carbon fields is a plugin that can be used as a library for easy creation of custom fields in the WordPress administration panel.
Can be created for post types, taxonomy terms, users, comments, options, navigation menus and even widgets.

Vymazání nepoužitých obrázků

Při uploadu obrázku (není-li speciálně ošetřeno) se automaticky vytváří několik různých formátů téhož. Na webu, kde se často publikuje, je pak adresář /uploads rychle zaplněn tisíci obrázků, což se napříjemně projeví třeba při zálohování.

Rešení je DNUI Delete not used image plugin
DNUI Delete not used image Delete not used image
http://www.nicearma.com/…dpress-dnui/

This plugin will help you to find all image in the database that are not being used/unused and give you the oportunity to cleanup the database and the server space.

You will only delete not used/unused image (based in the logic of a blog site, so dont worry about delete image used.

Automatický náhledový obrázek

Auto Post Thumbnail
http://wordpress.org/…t-thumbnail/

Automatically generate the Post Thumbnail (Featured Thumbnail) from the first image in post or any custom post type only if Post Thumbnail is not set.

If the post thumbnail is already present, the plugin will do nothing. If you don't want a post thumbnail for some post with images, just add a custom field skip_post_thumb to the post and the plugin will restrain itself from generating post thumbnail. The plugin also provides a Batch Processing capability to generate post thumbnails for already published posts.

Další pluginy
http://beginnersbook.com/…tomatically/
http://wpfreesetup.com/…ess-plugins/

nebo pomocí funkcí:

<?php
function autoset_featured() {
global $post;
$already_has_thumb = has_post_thumbnail($post->ID);
    if (!$already_has_thumb)  {
        $attached_image = get_children( "post_parent=$post->ID&post_type=attachment&post_mime_type=image&numberposts=1" );
        if ($attached_image) {
            foreach ($attached_image as $attachment_id => $attachment) {
                set_post_thumbnail($post->ID, $attachment_id);
            }
        }
    }
}
add_action('the_post', 'autoset_featured');
add_action('save_post', 'autoset_featured');
add_action('draft_to_publish', 'autoset_featured');
add_action('new_to_publish', 'autoset_featured');
add_action('pending_to_publish', 'autoset_featured');
add_action('future_to_publish', 'autoset_featured');
?>

alternativně

function set_first_as_featured($attachment_ID){
    $post_ID = get_post($attachment_ID)->post_parent;
    if(!has_post_thumbnail($post_ID)){
        set_post_thumbnail($post_ID, $attachment_ID);
    }
}
add_action('add_attachment', 'set_first_as_featured');
add_action('edit_attachment', 'set_first_as_featured');

On every upload / edit attachment, function checks if the post already has featured image. If it has not, image in question is set as featured. Every next picture will be ignored (since post already has featured image).

případně

wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'thumbnail' )[0];

Get The First Image From a Post »

Automatické stažení náhledů videa z videoserverů

Video Thumbnails
http://wordpress.org/…-thumbnails/

Video Thumbnails makes it easy to automatically display video thumbnails in your template. When you publish a post, this plugin will find the first video embedded and locate the thumbnail for you. Thumbnails can be saved to your media library and set as a featured image automatically. There's even support for custom post types and custom fields!

Adresy náhledových obrázků na YouTube:

img.youtube.com/vi/VI­DEO_ID/#.jpg

# 1,2,3 - 120x90 px # 0 - 480x360 px

(Použito např. na abeceda-anglictiny.cz)

Ořezy obrázků

Pokud jste někde vytvářeli či upravovali šablonu, určitě jste se setkali i s náhledovými obrázky článků. Díky funkcím wordpressu je nemusíte nahrávat ořezané či zmenšené, script to udělá za vás. Jeden obrázek je tak možné vkládat ve více velikostech. Základní jsou thumbnail (150, 150), medium (300, 300), large (1024, 1024) a full (bez zmenšení). Vytvářet [...]