How to show file type of featured image in post on single.php?

For example:
Featured image type is: “.jpg”

I can get mime-type, like “image/jpeg”.

It could be also some check of image mime-type first, for example if image mime-type is “image/jpeg” then echo “.jpg” if it is “image/gif” echo “.gif”.

Read more here: How to show file type of featured image?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: