i'm trying to get post's first image(LINK) , Currently i'm using Shorcodes Ultimade plugin for it so far i'm able to get post's content using the following shortcode on my static homepage page
[su_post field="post_content" default="" before="" after="" post_id="68" filter=""]
but the above shortcode is returning the whole content (Images + Post's text)
i checked the documentation and they don't seem to have any built in solution for getting only image from a post, Any one know how can i get only the image or can i filter out only image from returned data?
preg_match
on the post content and search for the image-tag but that is no good idea. Why not use the featured image function of WordPress?