So finally I managed to sort of fix it myself and wanted to share it if anyone finds it helpful.
not the best solution in the world but still..
just uploaded the image via the Media section and
not from within the post/page
and then used it in the post as a featured image which wasn’t uploaded directly from there, therefore, it wasn’t included in the gallery pictures loop.
Related Posts:
- How to remove title attribute from gallery links and images
- get the image of the post
- Exclude images from “inserted into post” when trying to get attachments
- Customizing the attachement page to show rest of all images in a gallery from post
- One picture belonging different galleries?
- Can i have 2 separate Galleries on 2 separate pages each go to a DIFFERENT Attachment.php file?
- attachment.php & flexslider—linking thumbnail to specific image
- wp_get_attachment_link() add rel attribute if the link points to direct image
- Image Attachments Query Not Working If Post Is Loaded Via Ajax
- Programmatically adding images to media library
- Can I attach image to post without adding it to post?
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- get_post_gallery with Gutenberg
- Navigate with keyboard in Gallery shortcode
- Insert an image into a post by API
- How do you modify the HTML output of a Gallery item (using the gallery shortcode)?
- Get attachment ID of author_meta image – Attachment Metadata
- How to include externally hosted images into a gallery block
- Use Media Library to manage galleries like Nextgen (with folders, albums, collections, tags, categories, terms…)
- How can I make all gallery images to open in a new window?
- copy attachment title to description and alt text
- Open the attachment details modal
- Loop through child images of a parent for a Nivo Slider
- Rename attachments during upload
- Regex to turn embedded images in to attachments
- Regenerate missing _wp_attachment_metadata
- Make alt text required when setting a featured image
- Editing built in Gallery shortcode to filter by categories
- Gallery images stored elsewhere (preferably Google Drive)
- WordPress gallery previous/next buttons showing all media library images
- Any way to “combine” galleries or show multiple galleries as one?
- Display one random image, but only if landscape
- Is there a way to get attachment data?
- How to change image url?
- media_sideload_image with rewritten urls?
- WooCommerce-like featured gallery
- Override img class in gallery
- Pull Random Attachments With Pagination
- Extracting gallery images in WordPress 3.5 on index.php
- Out of memory error reporting
- Multiple images in one attachment page
- How to use photo in multiple posts?
- attachment.php code or tutorial
- WordPress adds extra width to post images container boxes
- Handling image uploads without thickbox
- Retrieve an array of image URLs that belong to a gallery
- Ho to add “Create Slider” option to default “Add Media” popup?
- How to make a gallery with dynamic images from URLs?
- Images attached to posts from library link to 404 error page
- Help to upload post attachments from Ajax
- How can I display an image description, from an image gallery?
- Gallery with thumbnail carousel
- Ways to show multiple, separate galleries per post?
- Native gallery sorting is ignored
- Using Jetpack carousel w/o creating a gallery [closed]
- How to get the Gallery form/section just like in Gutenberg block?
- Call to undefined function wp_generate_attachment_metadata()
- How do you import images from a URL in your post?
- Get all image IDs from the Media Library
- Get images attached to a specific page
- Allow users to contribute images to a post
- How to test if there are no more previous or next image on attachment page?
- Show last 12 uploaded images on home page, but only from posts
- How to remove the images from “Uploaded to this post”?
- limit number of images shown from gallery
- What is the plugin to import image from URL?
- photo gallery implementation like tmz
- How do I display the featured image from an image gallery using a reference in code? (example within)
- How to replace post image url before posting using api?
- How to get post id of first child of the same post type?
- How to enlarge thumbnail on mouseover?
- attach several images to post + gallery
- get_post_gallery with Gutenberg
- Implementing a modal(lightbox) for all images in all post-gallery posts
- Hover a css icon width other color inside wp_get_attachment_image
- how automatically show the image title before the image caption/description in a wordpress gallery?
- change the h3 subtitles of the wordpress gallery shortcode
- How to echo images Urls from a wordpress post, that are relally in the post
- SQL: How to find all attachments that are not used in any posts/pages/custom_post_types
- Allow users to upload attachments to certain posts
- Return only one post format in index.php [duplicate]
- Get “Image CSS Class” value from the Advanced Options section
- Uploaded images not showing properly using wordpress
- How can I add an “Attach image to this post/page” link on the Add Media lightbox?
- Attachment Metadata inside of Loop
- How do i replace the title attribute of img tag with the image caption
- Issue on Getting WP Gallery Items In cpt-single.php As Attachments
- Create a custom attachment thumbnail for quick page load
- How can I hide previous_image_link() on first attachment page?
- Breadcrumbs for Single Image page
- Multiple gallery thumnbnails on one page
- Slider do not add alt attribute. Cant get alt attribute from a media library!
- Upload unnattached image from frontend
- Image attachement management – a philosophical question
- Change the way wordpress outputs images or image galleries
- Paginate Gallery [closed]
- Stop Attachment image names from taking top level permalink
- *box for images displayed as a post’s [gallery] [duplicate]
- Getting top Image From the Gallery and printing out a thumbnail with Exact Dimensions
- Images uploaded in customized gallery do not link to media