Hi. I would like to remove the first image from the_content. It’s not an easy task but I’ve found a piece of code on this website but it looks heavy (the author says ‘It is not an elegant solution, but it works’) and it doesn’t work on my site (I get: Warning: preg_replace() [function.preg-replace]: Unknown modifier ‘I’ in /homez.32/mysite/www/bonto/wp-content/themes/v3/functions.php on line 60)…
Does someone knows how to skip the first image and just show the_content without the first image?
Thanks a lot for your help! 🙂
- The topic ‘How to remove first image from the_content?’ is closed to new replies.