Picture inserted in the post not showing in “Gallery”
Found a solution – using the plugin “Add from server”, I can re-import the pictures which I attached to the posts when the blog was powered by Dotclear.
Found a solution – using the plugin “Add from server”, I can re-import the pictures which I attached to the posts when the blog was powered by Dotclear.
I cleaned up the code u have given and it should work as you intend. Let me know if your still having problems. <div id=”slider”> <?php $c = get_option(‘wpns_category’); $n = get_option(‘wpns_slices’); $s = new WP_Query( array( ‘cat’ => $c, ‘posts_per_page’ => $n ) ); if( $s->have_posts() ): while( $s->have_posts() ): $s->the_post(); global $post; ?> … Read more
Updated the answer to match my latest comment: Changing <?php if (the_post_thumbnail()): ?> to <?php if (has_post_thumbnail()): ?> will probably solve things. Also, some must have developer plugins when working with featured images: Regenerate Thumbnails AJAX Thumbnail Rebuild
Can you please add some of the code from your Loop.php file? The code you need to make a featured image show up is: <?php the_post_thumbnail( ‘medium’ );?> If you want the medium size picture to show up, use thumbnail, large or just ” (original size) to show other sizes. Just to be sure, have … Read more
In your child theme, are you calling the thumbnail? This is the default use from the WordPress Codex <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. the_post_thumbnail(); } ?> <?php the_content(); ?>
Post thumbnails are enabled in the twenty-eleven theme by default. If it’s not working either you have a plugin conflict, or someone has edited the functions.php file. Here is the section of the twenty-eleven functions.php file that should enable the post thumbnails: add_theme_support( ‘post-thumbnails’ ); The code needs to be inside the function twentyeleven_setup() function … Read more
TwentyEleven includes the featured image from header.php, rather than a template part like most themes. If you comment out line 92 that should remove it, e.g. <?php // The header image // Check if this is a post or page, if it has a thumbnail, and if it’s a big one if ( is_singular() && … Read more
I’d be sure that the new server has the same php config as the last, mainly GD library or ImageMagick. Use phpinfo http://php.net/manual/en/function.phpinfo.php to check configs if it’s shared and you can’t get to the php.ini file.
You can add your own named image size by adding code to your functions.php. Something in the line of add_theme_support(‘post-thumbnails’);//might not be necessary add_image_size(‘front-end-150’, 300, 300); Now you should be able to use in your catch_that_image() wp_get_attachment_image($post->ID, ‘front-end-150′) for all newly uploaded images. Your past images don’t have the front-end-150, so you might want to … Read more
By default, the_post_thumbnail() $size parameter is ‘post-thumbnail’. You can set that by adding this line to your functions.php : set_post_thumbnail_size(125,125,true); If this still doesn’t update your image’s size, you may need to use a plugin like “Regenerate Thumbnails.” Alternately, you can set the image to use one of the Media Options-defined sized by passing a … Read more