How to get relative URL of medium sized featured image?
You’re on the right track with your first snippet – from there it’s easy to remove parts of the url: check what WP has stored as the site root, then use php’s string functions to snip that part out of your image url. // inside the post loop, in a template file if ( has_post_thumbnail()) … Read more