Exclude images from showing in the_content() ?
-
Have tried this on the How-To section, altho was thinking that its more of a hack, so thought I’d try here.
Is there a hack to exclude images from showing on the main page when using
the_content()
?I don’t want to use a plugin for this as I’m pretty sure there’s a way to do it. I don’t want to use
the_excerpt()
as it removes formatting of the post, along with no more link and is set to a certain number of characters. As I would like to use the more tag to select exactly what to show in the post summary.Anyway, basically I’m trying to do this as I use the thumbnail option and have a thumbnail showing for the post, but if there’s an image in that start of the post, it shows also. Hence why i want to remove <img> tags from being displayed in when using
the_content()
.Really hope someone can help as I’ve been searching for ages.
Cheers.
- The topic ‘Exclude images from showing in the_content() ?’ is closed to new replies.