Editing featured image

You can add image sizes and cropping settings with the add_image_size() function. Call the declared name of your size at the frontend and you’ll have your desired size and crop. The image is stored as an id, you can pick whatever size you want with the the_post_thumbnail() function. PE: the_post_thumbnail(‘medium’); will show the featured image … Read more

Featured Images not appearing

All your issues could be solved with some MySQL queries. Regarding point #1: if you are using mod_rewrite then I recommend using absolute URLs for images in posts, if you are displaying full post content (including its images) on other pages – as you suggest. You can do a MySQL search/replace as follows: UPDATE wp_posts … Read more

I would like my posts to pull my custom cropped thumbnail instead of creating its own thumbnail from Featured Image

If your theme is using the_post_thumbnail() to display the featured image, adding the following code in functions.php file will display the Thumbnail size of the image (as set on Settings -> Media Settings): add_filter(‘post_thumbnail_size’, ‘my_thumbnail_size’); function my_thumbnail_size() { return ‘thumbnail’; } Or you can display the featured image in any width (X) or height (Y) … Read more

Custom image sizes are not used

The function.php: if ( function_exists( ‘add_theme_support’ ) ) { add_theme_support( ‘post-thumbnails’ ); set_post_thumbnail_size( 150, 150 ); // default Post Thumbnail dimensions } if ( function_exists( ‘add_image_size’ ) ) { add_image_size(‘homepage’, 704, 396, true); add_image_size(‘articles’, 1174, 660, true); add_image_size(‘in-post’, 568, 320, true); add_image_size(‘featured-post’, 1280, 683, true); } To make it appear in .php-file: <?php if ( … Read more

Crop featured image by default

try this define a custom image size (add_image_size) add_image_size(name,w,h,true); where w and h for height and width of your image.and fourth parameter true for hard croping of image.read wordpress codex for that put your custom image size name in the_post_thumbnail function the_post_thumbnail(‘name’) or if your design is not responsive then you can set image size … Read more

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