I'm new to WordPress and I'm trying to target specific parts of the content.
I understand how to grab the title with
get_title() — is there something similar for images?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
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.