specify size of post preview image (not post thumbnail)

In this case I would add image size in functions.php which registers new image size in my theme and get the re-sized image. Example: Register custom image size (functions.php) if ( function_exists( ‘add_image_size’ ) ) { add_image_size( ‘custom-image’, 440, 265, true ); //(cropped) } Get custom image size (functions.php) function get_custom_image(){ global $post, $posts; $args … Read more

remove and disable image link in functions.php

A little late to this party but it seems the OP wants to (1) prevent these WP Selfies from recurring and (2) remove existing WP Selfies. Here is a great filter to prevent it from happening in the future: http://andrewnorcross.com/tutorials/stop-hyperlinking-images/. And I just posted a snippet that removes existing self linking images here: http://cfxdesign.com/remove-existing-self-linking-images-in-wordpress/.

Show Multiple Size URL of one Featured Image/Thumbnail?

no problem to have 2 or more post thumbnails of different sizes. but what is the “ref” attribute ? do you mean “rel” ? anyhow – example from the :codex <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’); echo ‘<a href=”‘ . $large_image_url[0] . ‘” title=”‘ . the_title_attribute(‘echo=0’) . ‘” >’; the_post_thumbnail(‘thumbnail’); echo … Read more

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