In post content, you can add featured image before post title as per theme support. But if you already have some content on your website and moving from one theme to another. Then it may be possible that the new theme doesn’t support featured image addition in content. But you want to add featured image in content after first the first paragraph of post content.

Its very simple to show a featured image using the_content filter and using preg_replace function to append featured image in the first paragraph.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.