Is there a way to target only images within the loop?

That depends. There is the_post_thumbnail which will echo the “featured” image and get_children can grab all attachments. Certain kinds of images aren’t attached though, so you can’t easily get those. Reference http://codex.wordpress.org/Function_Reference/the_post_thumbnail http://codex.wordpress.org/Function_Reference/get_children

The Loop isn’t working

The problem is not that the loop is not working. The problem is your code is not executing the loop the way you want it to. PHP does not do what you mean. It does exactly what you tell it to do. Like most computer languages, it is just an extremely fast and incredibly dumb … Read more

Transient Loop Not working as expected

What is the code on line 3645? You didn’t specify. From what I see in your code, $transient_name should be something like “_my_post_list_transient” – a string. If $transient_name is returning a post object, then your call to this function may be the problem.

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