There are several hooks in get_the_post_thumbnail
for example
begin_fetch_post_thumbnail_html
end_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
- Function to execute when a post is moved to trash .
- Get content from one page and show it on another 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
- media_handle_upload for local files?
- Modify ‘Read more’ link adding a new class
- How to publish a post with empty title and empty content?
- How to add a “publish” link to the quick actions
- How do I use element instead of tags in WordPress post content having webP support?
- VT-resize image and display it [duplicate]
- Count singular post views automatically
- Post content being duplicated by the_content();
- Posts Page Featured Image [closed]
- How do I programmatically add an image to a post?
- How can I extract the URL of a link from a post?
- 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
- Display the Content of a Post with qTip2
- custom post type grid with content in lightbox [closed]
- add_action not using ‘delete_post’ action with wp_delete_post
- Get post id in wordpress action?
- How can i do something after head like adding a hook for after head but before post
- How to run a function when post is edited or updated using publish post action?
- Create cron job without a plugin?
- How do I find which articles are missing a featured image in The WordPress database?
- How to access featured image?
- Modify WP_Post before processing
- Show featured image next to post-teasers in Genesis Framework?
- Uppercase first sentence in every post
- Admin Notices don’t display on the admin screen for certain post
- Adding the_date inside tags around the_content
- Adding custom fields to bbpress reply form
- Set size for attachments
- Adding buttons to Add New Post and Add New Page
- Show the content that is after the excerpt using child theme
- Get all images in post and comments like Twitter before post title
- Set static page/post from another blog on same network
- Copy post to separate database with “add_action(….)”
- Filter only the text in the_content
- Get Post’s first image using Short-code
- What does WordPress do if I save a post without content/title? [duplicate]
- Admin – no Featured image choice in create new/page|post
- Post Image not displaying in category view
- How to disable the_excerpt from one post
- Divs appearing everywhere in post content
- Prevent posts with certain post_meta to be edited
- How to check in functions.php if there is data in a WP_Query?
- how to give multiple post thumbnails to a post
- Using wp-cli and delete everypost first image
- How to display post title inside thumbnail?
- Add div before the first paragraph the_content [closed]
- the_content() Not Grabbing All Content
- Post Title to featured Image ALT
- Exists filter or action that change Add New Post link?
- Remove Featured Image from posts in specific category?
- Only show featured image on exerpt and exclude images in post
- Adding if statement into the_content()
- 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?
- How do I display main query posts in random order using add_filter
- How to exclude native lazy loading from first image in post content?
- Delete media from the post but keep my featured image and post
- Run a function when a custom post is update?
- the wp_post_update isn’t working all the time
- Featured image error after importing blog posts
- Send email to user when I publish a new post
- how can i take wordpress post as embed?
- Is update_post_meta used when save_post action hook is invoked?
- Set featured image as hero image on each page
- Thumbnails and images in the blog post are not loading
- Count singular post views automatically
- Display images of related posts
- How to show category image if no featured image is set?
- Grab meta data before post is saved
- if CPT content is empty then
- Set featured image on creating new post
- Find post tags words in post content and link them to tag URLs
- How to get all posts in gallery post format template
- Is it possible to completely replace a post with an action/filter?
- Add review box by function at top or bottom of content
- Hook To Get All Posts Deleted
- Showing content from WordPress ruins page CSS using WP_Query, without, content does not show
- How do I get thumbnails?
- Insert link to my thumbnail images
- thumbnail image path and file path for gallery thumbnail images
- Wanting to apply different featured images for each post
- Assign custom class to post content images
- Post thumbnail is not shown in wp-admin
- Post thumbnail height problem
- Displaying warning if no featured image has been set – Post Editor
- How enter custom post meta or custom field on box post list archive page?
- $attachment->post_title not displaying title
- How add class the_content();?
- Import alt text in set_post_thumbnail
- website images getting corrupt automatically