Add Featured Image as Post URL Path Component Extension

Question

I would like to append an extension component to my post URL that would allow me to get the featured image of a post while preserving the URL scheme.

For example, if my final post URL was:

https://my.domain.com/posts/my-latest-post/

I would be able to retrieve the featured image using:

https://my.domain.com/posts/my-latest-post/thumbnail

The /thumbnail component would be statically named. This is a convention that I have seen around the place and would allow me, for example, to provide an image in an external RSS-based rendering where only the RSS title and URL properties are available.

Any thoughts would be very welcome.

0
user197688 2 months 0 Answers 9 views 0

Leave an answer