Can you please let me know if there is a possibility to remove first images pasted to the post with remaining of thumbnails. I’m asking as I can’t use thumbnails at the moment, as when I do this, I receive the following issue – https://gyazo.com/dcf182479aa0cda6841da878cfe30149 I noticed that there is a possibility of not showing a thumbnail, but I want to show thumbnails, as if I don’t have them, I’m not able to use post types I like.
Hi,
You should be able to use thumbnails properly without duplication. Our theme displays the featured image on the post itself so there is no need to add the image again in the post content itself. If you want to use the post styles without duplication, please remove the images from your post content. unfortunately there is no automatic way of doing this. if it;s too big of a hassle to delete all of them, then use post style 5 as it will not show the featured image on the front-end.
Thank you!
Our theme displays the featured image on the post itself so there is no need to add the image again in the post content itself.
I know, but the issue is that in my previous theme there were no such support of the thumbnail featured image, so I was forced to add the first image of the post. So there are more than 20.000 posts with the images which are displayed below the featured image. To remove them manually it will take ages.
unfortunately there is no automatic way of doing this
I found the following code for functions.php that make it automatic
function remove_first_image ($content) {
if (!is_page() && !is_feed() && !is_feed() && !is_home()) {
$content = preg_replace("/<img[^>]+\>/i", "", $content, 1);
} return $content;
}
add_filter('the_content', 'remove_first_image');
This removes the first image from displaying on the front-end, but
– it leaves it in the Editor
– it also doesn’t remove the caption
Probably you may advise on some other way of removing the first picture when it is removed from the editor and when it is also removes the capture?
Hi,
Unfortunately I have no easy solution to provide. This is possible through customization, i was stating that it’s not possible from the theme settings. This however falls beyond what support can offer you though. We cannot provide any custom work at the moment. Sorry!
Thank you!
But the theme won’t work properly without fixing this issue 🙁 I belive it referes to the “Assistance with reported issues” mentioned here http://themeforest.net/page/item_support_policy I have an issue — my pictures are duplicating and part of the theme functionality is not available for me until it is fixed by removing the first picture of the post.
Hello,
We do provide assistance with issues and bugs but this is not a theme related issue. Custom code that has to be added to the theme files falls under customization, not theme related issues or bugs. Here is our support policy: https://forum.tagdiv.com/support-policy-2/
I would gladly help if there was another easier way of doing it, but please understand that we are a small team and we have to answer to everyone. We cannot allow the time needed to make customization for customers. We are sorry for the inconvenience. The solution if you have the first images set as featured is to use post style 5 for your older posts and there will not be any duplicate images.
Thank you!
Hello,
We do provide assistance with issues and bugs but this is not a theme related issue. Custom code that has to be added to the theme files falls under customization, not theme related issues or bugs. Here is our support policy: https://forum.tagdiv.com/support-policy-2/
I would gladly help if there was another easier way of doing it, but please understand that we are a small team and we have to answer to everyone. We cannot allow the time needed to make customization for customers. We are sorry for the inconvenience. The solution if you have the first images set as featured is to use post style 5 for your older posts and there will not be any duplicate images.
Thank you!
Ehhh. I didn’t get this one ) Did you see my last mail? As I am mentioned you suggestion regarding post style 5 works perfect for me. I do agree with it.
What I am asking is how do I set post style 5 for all older post starting from today and older, but set other post style for every new post? How do I do that?
Hi,
You can use this method to reset the theme settings to their default and set the template as a global post template from the theme panel:
https://forum.tagdiv.com/topic/change-style-of-multiple-posts-at-once/ and set post style 5 from here: http://screencast.com/t/YzeCcN4rb
Now the default post template will be style 5 so for new posts you will have to select your desired style when you create it as it will also get post style 5 by default.
Thank you!
Hi,
Please contact us via email at contact@tagdiv.com and provide wp-admin so we can login and inspect this issue. Please also include a link to this topic so we can identify you. Post style 5 should not show the featured image anywhere.
Thank you!