How do I get resized thumbnails?

Your example code is calling the full size image as you mention and resizing to the dimensions you feed into the array. I’ve answered this question before here, but the basic idea is that you’ll want to use add_image_size() in your functions.php to tell WordPress you’d like it to create a new image size when … Read more

Images with excerpt function

For everyone that is looking for an excerpt that keeps images etc in tact without using the first image function, here is the code function pietergoosen_custom_wp_trim_excerpt($text) { global $post; $raw_excerpt = $text; if ( ” == $text ) { $text = get_the_content(”); $text = strip_shortcodes( $text ); $text = apply_filters(‘the_content’, $text); $text = str_replace(‘]]>’, ‘]]>’, … Read more

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