Exerpt to allow html tags, eg <a>? Non-core hack
-
Hi,
Has anyone successfully written code to allow specific tags within an excerpt? Eg, my client wishes for links (
<a href...
tags) to be written when the_excerpt() is printed to the page. Currently, the excerpt strips all tags.I do not wish to use a plugin (which is dependent on a version keeping up to date with WP core updates) and I don’t want to write code that re-writes the core. I was hoping to use a filter, but that doesn’t seem possible as I couldn’t find a filter that hooks onto the excerpt.
Any help would be greatly appreciated.
Cheers.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Exerpt to allow html tags, eg <a>? Non-core hack’ is closed to new replies.