WordPress thumbnail settings change
The Regenerate Thumbnails plugin will go through your media library and re crop all your images.
The Regenerate Thumbnails plugin will go through your media library and re crop all your images.
Assuming you are using Twenty Ten, Twenty Eleven, or one of the several Themes that derive Post Thumbnail (i.e. “featured image”) feature handling from either of these Themes: The Featured Image is applied to the header image, if and only if the dimensions of the Featured Image exceed the dimensions of the header image. The … Read more
Refer to the add_image_size() Codex entry: <?php add_image_size( $name, $width, $height, $crop ); ?> The $crop parameter is the key: (boolean) (optional) Crop the image or not. False – Soft proportional crop mode ; True – Hard crop mode. Default: false That is: False (default): box-resize – (resize image against the constraining dimension) True: hard-crop … Read more
They work independently of eachother. You need to call the one you created in the functions.php. So in your functions.php you would have something like: if (function_exists(‘add_theme_support’)) { add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 75, 75, true ); // default thumbnail size add_image_size(‘my-custom-thumb’, 80, 80, true); //custom size } and then to call your custom thumbnail you … Read more
The featured image is stored in the *_postmeta table under the _thumbnail_id key. In fact, chances are that you’ve got a lot of image/media urls in that table, which you haven’t changed. The problem is that a number of things are stored in serialized arrays and changing them with SQL as above will (probably) break … Read more
You could add a meta box to the post add/edit screen below the featured image box to allow selection of size via a dropdown select menu. You could generate the list from available sizes (via get_intermediate_image_sizes), or just use your small/large strings. The data would be saved as post meta and you would simply get_post_meta() … Read more
it is much easier with WordPress inbuilt function media_handle_upload http://codex.wordpress.org/Function_Reference/media_handle_upload // These files need to be included as dependencies when on the front end. require_once( ABSPATH . ‘wp-admin/includes/image.php’ ); require_once( ABSPATH . ‘wp-admin/includes/file.php’ ); require_once( ABSPATH . ‘wp-admin/includes/media.php’ ); // Let WordPress handle the upload. // Remember, ‘my_image_upload’ is the name of our file input … Read more
You are not using loop properly. Not tested but you can try this: <?php if (have_posts()) : ?> <br /> <div class=”jumbotron”> <?php while (have_posts()) : the_post(); ?> <?php the_post_thumbnail(array(‘class’ => ‘img-thumbnail’)); ?> <?php endwhile; ?> <br /><br /> <button type=”button” class=”btn btn-xs btn-warning”>VER TODOS LOS ESTRENOS</button> </div> <?php else: ?> <p><?php _e(‘No posts were … Read more
Facebook scrapes your pages for images to go along with the post you share. When it finds an image on the page it will use that. To specify which image exactly you have to use Open Graph tags in the head part of you html page. The og:image tag in particular: <meta property=”og:image” content=”http://graphics.myfavnews.com/images/logo-100×100.jpg” /> … Read more
esc_attr() might not be necessary on the url retrieved by wp_get_attachment_image_src. I have referred to a code example from the WordPress Codex page on wp_get_attachment_image_src and adapted the following code that works for me. global $post; $thumbnailSrc = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), ‘medium’); if ( $thumbnailSrc ) : echo ‘<meta property=”og:image” content=”‘.$thumbnailSrc[0].'”>’; endif; Edit: Since you are using … Read more