How to get all inline images in post content? [duplicate]
Well you can do this 1 of 2 ways. $attachments = get_posts(array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => get_the_ID(), ‘order’ => ‘ASC’, ‘orderby’ => ‘id’, )); And then manipulate the array to remove duplicates. Another option would be to apply a content filter, and use a regex to find and … Read more