There are several hooks in get_the_post_thumbnail for example
begin_fetch_post_thumbnail_htmlend_fetch_post_thumbnail_html
/wp-includes/post-thumbnail-template.php
You could add a function to one of these actions which removes your filter on first run.
If you need further help with this please add some code how you filter the_content.
Related Posts:
- Stop WordPress Wrapping Images In A “P” Tag
- How to get ‘post_content’ without stripping tags?
- How do you add thumbnail support for custom post types?
- Function to execute when a post is moved to trash .
- add action only on post publish – not update
- Post featured image column on admin post list page
- Removing any and all inline styles from the_content()
- How to validate XML-RPC post creation and cancel when needed?
- Custom Field in Featured image for A particular post
- How to disable content pagination?
- How to add/assign or change featured image in post programmatically?
- Action hook ‘wp’ firing twice… why?
- Adding a div class or id inside the_content()
- Showing Thumbnail from Previous and Next Posts
- Get the post_id of a new post
- Custom function for “Submit for Review” hook
- How to add custom content (text/image) at start of content (IN content ie the same line)
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- Delete Post From Front-End and attachment permanently
- How can I hook into creating a new post and execute wp_die(), before the post is inserted into the database?
- Testing for post title in ‘if/else’ statement returns no content
- Underscores.me retrieve next / previous post thumbnail in post_nav function
- How to show video from specific category on sidebar?
- How only display all post related to category
- add_action not using ‘delete_post’ action with wp_delete_post
- the_posts filter been called multiple time
- Get post id in wordpress action?
- How to run a function when post is edited or updated using publish post action?
- Create cron job without a plugin?
- Modify WP_Post before processing
- Show featured image next to post-teasers in Genesis Framework?
- Uppercase first sentence in every post
- Why content_arr[‘extended’] removes paragraph tags?
- What is the standard featured image size?
- How to add pagination in between post and comments?
- Errors when uploading images in WP 3.5
- Adding the_date inside tags around the_content
- Adding custom fields to bbpress reply form
- Adding buttons to Add New Post and Add New Page
- Show the content that is after the excerpt using child theme
- why are images not full size?
- Post body text occupying featured image space before it loads
- get query() without post content?
- Set static page/post from another blog on same network
- Issue where WP Featured Image will not display
- Filter only the text in the_content
- Call Web Services on post first publish
- Getting only the URL of the post thumbnail
- Remove Featured Image & All Media Uploaded to the Post
- What does WordPress do if I save a post without content/title? [duplicate]
- related author post thumbnail shows post thumbnail
- Admin – no Featured image choice in create new/page|post
- preg_replace not removed “class”
- Divs appearing everywhere in post content
- Prevent posts with certain post_meta to be edited
- Update post meta within save_post action
- Automatically set post_parent value
- Using wp-cli and delete everypost first image
- Add div before the first paragraph the_content [closed]
- Get featured image on hover of post title [closed]
- Remove Featured Image from posts in specific category?
- Retrieve a specific post’s featured image and show on a different page
- Only show featured image on exerpt and exclude images in post
- How to display Post title By ID and its Thumb Contents
- Actions to use when flushing cache (when posts are added / deleted / modified)
- why my urdu text is not aligned properly when written in wordpress blog post?
- Delete media from the post but keep my featured image and post
- Is there a way to know when a page has been updated and do some action only once?
- How to limit wordpress the_excerpt() dynamically
- Featured image error after importing blog posts
- Mysql update menu_order problem
- how can i take wordpress post as embed?
- Thumbnails and images in the blog post are not loading
- Count singular post views automatically
- Blog featured images disappeared on my homepage
- post thumbnails error
- Display images of related posts
- Center crop the feature image
- Add another feature image box
- How to show category image if no featured image is set?
- How can i take all ids from untrash_post action?
- Grab meta data before post is saved
- Display post on main page with thumbnail
- Hook To Get All Posts Deleted
- Add Image Before Posts Entry Title
- Thumbnail With Next/Prev Links Not Showing Next Post?
- Latest news mini images
- Wanting to apply different featured images for each post
- Specific Post Format Image Thumbnail
- Assign custom class to post content images
- the_content() not displaying the full post
- Stripping tag from elements in post
- Post thumbnail is not shown in wp-admin
- How enter custom post meta or custom field on box post list archive page?
- Action while post is being published
- How add class the_content();?
- Do anything on post_status change [duplicate]
- Import alt text in set_post_thumbnail
- website images getting corrupt automatically
- Changable favicon based on post-featured image