Stripping images in Wordpress
Stripping images in Wordpress
Out of context: Reply #6
- Started
- Last post
- 13 Responses
- Anders0
Actually got it working with this;
echo strip_tags(nl2br(get_the_content('')),"<strong><strong><em><em><a>");But that includes only what I specify in there, is there a way of including every possible future markup that I might use in a post besides those who applies to the images?
It would be easier if it was the other way around; exclude the <img>