What’s the proper way to use the get_image_tag filter?

I’m attempting to remove the title attribute for post thumbnails (on certain posts), and I assume the get_image_tag filter is the way to do this. However, what I’ve got so far isn’t working. What do I need to change to make this work? My code: add_filter(‘get_image_tag’, ‘image_no_title’); function image_no_title($title) { $title=””; return $title; } And … Read more

How to show large image in checkout page using WP Ecommerce plugin [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third party plugins and themes are off topic, they are better asked about at their developers’ support routes. Closed 7 … Read more

Use ‘medium’ size with catch_that_image() function

I’ve this function, which I’m pretty sure a lot of you already know: function catch_that_image() { global $post, $posts; $first_img = ”; ob_start(); ob_end_clean(); $output = preg_match_all(‘/<img.+src=[\'”]([^\'”]+)[\'”].*>/i’, $post->post_content, $matches); $first_img = $matches[1][0]; return $first_img; } I would like to use the thumb, medium, etc sizes in the posts loop. Do you guys have any idea … Read more