Link images to post

If you’re adding an image to your post via “Add Media,” you can simply set where you would like the image to link by setting it in the “Link to” field. If you’re adding an image to your post with “Featured Image,” you can add this to your template: <?php if ( has_post_thumbnail()) : ?> … Read more

php.ini -Theme-specific settings

I’m wanted to comment rather than answer as I don’t have a solution for you, but I think this is too long 🙂 Hosts vary so widely on how and where they set memory allocation, and whether they allow hosted scripts to set it, that I don’t think there is a bullet-proof solution for you. … Read more

Thumbs and pictures not showing anymore

The problem is not with TimThumb, it’s with how you are calling TimThumb. Looking at your site, it is trying to load: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://i2.wp.com/ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg?resize=269%2C80&h=80&w=269&a=t&zc=1 If you update the theme or TimThumb config to pass the correct parameters, it will work: http://ovnihoje.com/wp-content/themes/channelpro/timthumb.php?src=http://ovnihoje.com/wp-content/uploads/2013/04/alien-greer.jpg&resize=269%2C80&h=80&w=269&a=t&zc=1 Since you recently migrated it’s likely that you have been pointing to the hold wp.com … Read more

Broken image URL

It worked for me. http://www.sixteeneighteen.co.uk/wp-content/uploads/2013/04/remove01.jpg i dont see any problem with the link.

Slider do not add alt attribute. Cant get alt attribute from a media library!

When I test get_the_post_thumbnail (also the_post_thumbnail) on WordPress 3.5.1, the alt attribute is added as it should be. If you look at the source, you will see that get_the_post_thumbnail uses wp_get_attachment_image which does add that alt attribute. By default, that attribute is the image file name but it can be edited from wp-admin->Media to be … Read more

Imagem resolution responsive

You can use the timthumb for resize your images as you want. if ( has_post_thumbnail() ) { // get the src of the large size featured image $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘large’ ); $thumbnailSrc = $src[0]; // output image resized with timthumb ?> <a href=”https://wordpress.stackexchange.com/questions/97632/<?php echo get_post_meta($postid,”post_link’, true) ?>” target=”_blank”> <img src=”<?php bloginfo(‘template_directory’); ?>/js/timthumb.php?src=<?php echo … Read more

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