Different image sizes for home and post pages

If your talking about the images that are written into $post->post_content (the_content()) you’ll either need to write a filter that strips out all images and replaces them with the smaller version. Or you could just use CSS. For CSS make sure you have body_class() in your body tag then you can localise a maxwidth to … Read more

Upload .doc to blog

The better way would be to use Windows Live Writer. It’s a Microsoft product that’s part of the Windows Live Essentials suite. This program allows you to copy-paste content from a Word document, or just build the post out as you would in Word. But the advantage is that it can also talk directly to … Read more

Image resize depending on orientation?

If you need the images to be the same width but varying heights (ie not 300 x 300 but 300 x anything) then in settings -> media add 9999 to the height of whichever image size you want to use. You can also define your own custom thumbnail using the same principle: http://codex.wordpress.org/Function_Reference/add_image_size [EDIT] As … Read more

media_sideload_image with rewritten urls?

You’re right, it’s because by default, wp_handle_sideload() requires a valid extension in the URI in order to continue processing the sideload. That is, unless your role has a capability called ‘unfiltered_upload‘, which by default is only given to admins. If it seems appropriate (and safe) for you to grant this capability to the user role … Read more

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